package com.lmiot.xyclick.Util;

import android.annotation.SuppressLint;
import android.app.Dialog;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.graphics.Rect;
import android.os.Build;
import android.support.v4.view.InputDeviceCompat;
import android.text.Editable;
import android.text.Html;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.text.format.DateFormat;
import android.view.View;
import android.view.ViewGroup;
import android.view.inputmethod.InputMethodManager;
import android.widget.AdapterView;
import android.widget.BaseAdapter;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListAdapter;
import android.widget.ListView;
import android.widget.NumberPicker;
import android.widget.RadioButton;
import android.widget.RelativeLayout;
import android.widget.Spinner;
import android.widget.TextView;
import com.bumptech.glide.Glide;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.bumptech.glide.request.RequestOptions;
import com.google.gson.Gson;
import com.lkx.liandianqinew.R;
import com.lmiot.xyclick.ActionDetailBean.DetailBean;
import com.lmiot.xyclick.Activity.GroupControlActivity;
import com.lmiot.xyclick.App.MyApp;
import com.lmiot.xyclick.Auto.AutoUtils;
import com.lmiot.xyclick.Bean.IfBean;
import com.lmiot.xyclick.Bean.IfBeanColor;
import com.lmiot.xyclick.Bean.IfBeanLocation;
import com.lmiot.xyclick.Bean.InitFloatBean;
import com.lmiot.xyclick.Bean.SQL.ActionBean;
import com.lmiot.xyclick.Bean.SQL.ActionBeanSqlUtil;
import com.lmiot.xyclick.Bean.SQL.AutoBean;
import com.lmiot.xyclick.Bean.SQL.AutoBeanSqlUtil;
import com.lmiot.xyclick.Bean.SQL.FriendBean;
import com.lmiot.xyclick.Bean.SQL.FriendBeanSqlUtil;
import com.lmiot.xyclick.Bean.TextThreeBean;
import com.lmiot.xyclick.Bean.TextUserName;
import com.lmiot.xyclick.Bean.TimerBean;
import com.lmiot.xyclick.Method.ChoseActionFourUtil;
import com.lmiot.xyclick.Method.ChoseActionIFUtil;
import com.lmiot.xyclick.Method.ChoseActionSecondUtil;
import com.lmiot.xyclick.View.TextConfigNumberPicker;
import com.lmiot.xyclick.inteface.OnBasicListener;
import com.xiaoyi.intentsdklibrary.Bean.PointBean;
import com.xiaoyi.intentsdklibrary.Bean.ViewBean;
import com.xiaoyi.intentsdklibrary.SDK.FloatView.NoteInfoViewSDK;
import com.yhao.floatwindow.FloatUtil;
import com.youyi.yychosesdk.SDK.YYChoseSDK;
import com.youyi.yychosesdk.models.album.entity.Photo;
import com.youyi.yycutsdklibrary.SDK.YYCutSDK;
import com.youyi.yyfilepickerlibrary.SDK.YYPickSDK;
import com.youyi.yyscreencutlibrary.SDK.YYScreenCutSDK;
import com.youyi.yyviewsdklibrary.ArrayGson;
import com.youyi.yyviewsdklibrary.Dialog.interfaces.OnTimeBack;
import com.youyi.yyviewsdklibrary.Dialog.util.ToastUtil;
import com.youyi.yyviewsdklibrary.YYSDK;
import java.io.File;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.regex.Pattern;
public class EditDialogUtil {
    public static Dialog mDialogDetail;
    public static ImageView mStaticImg;
    public static String mStaticImgPath;
    public static OnLocationListener onLocationListenerSet;
    private static final EditDialogUtil ourInstance = new EditDialogUtil();
    private List<ActionBean> mActionList;
    private List<String> mChoseColorList;
    private ChoseRemoteDevAdapter mChoseRemoteDevAdapter;
    private ColorAdapter mColorAdapter;
    private Date mDateEnd;
    private Date mDateStart;
    private Dialog mDialog;
    private Dialog mDialogListItem;
    private Dialog mDialogText;
    private Dialog mDialogThree;
    private Dialog mDialogTime;
    private Dialog mDialogTimeList;
    private Dialog mDialogUserName;
    private Set<String> mFriendBeanChoseList = new HashSet();
    private ActionBean mGotoAction;
    private int mGotoNum;
    private int mHours_01;
    private List<IfBean> mIfBeanList;
    private IfBeanLocation mIfBeanLocation;
    private Intent mIntent;
    private int mMinute_01;
    private List<PointBean> mPointBeanList;
    private String mRemoteAutoID;
    private String mRemoteAutoSearchName;
    private Set<String> mRemoteDevSet;
    private int mSecond_01;
    private List<String> mStringList;
    private ListView mTextlistView;
    private List<TextThreeBean> mThreeList;
    private ListView mThreelistView;
    private TimeListManager mTimeListManager;
    private ListView mTimeListlistView;
    private List<TimerBean> mTimerBeanList;
    private List<TextUserName> mUserList;
    private ListView mUserNamelistView;
    private String[] typeList01 = {"00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59"};
    private String[] typeList02 = {"00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23"};

    public interface EditMethod {
        void edit(String str);
    }

    public interface EditMethodAPP {
        void edit(boolean z);
    }

    public interface EditMethodThree {
        void edit(String str, String str2, String str3);
    }

    public interface EditMethodUserName {
        void edit(String str, String str2);
    }

    public interface EditMethodXY {
        void edit(int i, int i2);
    }

    public interface OnActionListListener {
        void result(List<ActionBean> list);
    }

    public interface OnBiggerFloatListener {
        void result(String str, float f);
    }

    public interface OnBiggerListener {
        void result(String str, int i);
    }

    public interface OnChoseActionNum {
        void result(int i, ActionBean actionBean);
    }

    public interface OnColorListener {
        void result(IfBeanColor ifBeanColor);
    }

    public interface OnCopyClickListener {
        void click(ActionBean actionBean);
    }

    public interface OnDateListener {
        void result(Date date);
    }

    public interface OnDetailListener {
        void result(ActionBean actionBean);
    }

    public interface OnEmailChangeListener {
        void result(String str, String str2, String str3);
    }

    public interface OnHTTPChangeListener {
        void result(String str, String str2);
    }

    public interface OnLocationListener {
        void result(IfBeanLocation ifBeanLocation);
    }

    public interface OnLogicListener {
        void result(List<IfBean> list);
    }

    public interface OnMaxMinListener {
        void result(int i, int i2);
    }

    public interface OnMenuClickListener {
        void click(int i);
    }

    public interface OnMsgChangeListener {
        void result(String str, String str2);
    }

    public interface OnOffetListener {
        void result(int i, int i2);
    }

    public interface OnPointChangeListener {
        void result(PointBean pointBean);
    }

    public interface OnPointChoseListener {
        void result(List<PointBean> list);
    }

    public interface OnRectChangeListener {
        void result(Rect rect);
    }

    public interface OnTextListListener {
        void result(List<String> list);
    }

    public interface OnTextThreeListListener {
        void result(List<TextThreeBean> list);
    }

    public interface OnTextUserListListener {
        void result(List<TextUserName> list);
    }

    public interface OnTimeListListener {
        void result(List<TimerBean> list);
    }

    public interface OnTimerListener {
        void result(String str, String str2);
    }

    public interface OnViewAcionTypeListener {
        void result(NoteInfoViewSDK.NowActioType nowActioType, Dialog dialog);
    }

    public interface OnViewItemListener {
        void result(List<ActionBean> list);
    }

    public interface ShareEditMethod {
        void edit(Set<String> set);
    }

    public interface setOnSureListener {
        void sureClick(boolean z);
    }

    public static EditDialogUtil getInstance() {
        return ourInstance;
    }

    private EditDialogUtil() {
    }

    public void edit(final Context context, int i, String str, String str2, String str3, final EditMethod editMethod, boolean z) {
        try {
            Dialog dialog = this.mDialog;
            if (dialog != null && dialog.isShowing()) {
                this.mDialog.dismiss();
            }
            if (z) {
                this.mDialog = LayoutDialogUtil.createSysDailog(context, R.layout.dialog_edit_layout);
            } else {
                this.mDialog = LayoutDialogUtil.createDailog(context, R.layout.dialog_edit_layout);
            }
            final EditText editText = (EditText) this.mDialog.findViewById(R.id.editText);
            editText.setInputType(i);
            TextView textView = (TextView) this.mDialog.findViewById(R.id.tv_sure);
            TextView textView2 = (TextView) this.mDialog.findViewById(R.id.tv_cancel);
            ((TextView) this.mDialog.findViewById(R.id.tv_title)).setText(str + "");
            editText.setHint(str2 + "");
            if (!TextUtils.isEmpty(str3)) {
                editText.setText(str3);
                editText.setSelection(str3.length());
            }
            this.mDialog.getWindow().setSoftInputMode(5);
            if (z) {
                if (Build.VERSION.SDK_INT >= 26) {
                    this.mDialog.getWindow().setType(2038);
                } else {
                    this.mDialog.getWindow().setType(2003);
                }
            }
            textView.setOnClickListener(new View.OnClickListener() {
                /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass1 */

                public void onClick(View view) {
                    ((InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE)).hideSoftInputFromWindow(editText.getWindowToken(), 0);
                    EditDialogUtil.this.mDialog.dismiss();
                    String obj = editText.getText().toString();
                    if (TextUtils.isEmpty(obj)) {
                        ToastUtil.warning(context.getString(R.string.nepty));
                        return;
                    }
                    if (editMethod != null) {
                        editMethod.edit(obj);
                    }
                }
            });
            textView2.setOnClickListener(new View.OnClickListener() {
                /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass2 */

                public void onClick(View view) {
                    ((InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE)).hideSoftInputFromWindow(editText.getWindowToken(), 0);
                    EditDialogUtil.this.mDialog.dismiss();
                }
            });
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public void editXY(final Context context, int i, String str, String str2, final EditMethodXY editMethodXY, boolean z) {
        try {
            Dialog dialog = this.mDialog;
            if (dialog != null && dialog.isShowing()) {
                this.mDialog.dismiss();
            }
            if (z) {
                this.mDialog = LayoutDialogUtil.createSysDailog(context, i);
            } else {
                this.mDialog = LayoutDialogUtil.createDailog(context, i);
            }
            final EditText editText = (EditText) this.mDialog.findViewById(R.id.editText_x);
            final EditText editText2 = (EditText) this.mDialog.findViewById(R.id.editText_y);
            TextView textView = (TextView) this.mDialog.findViewById(R.id.tv_sure);
            TextView textView2 = (TextView) this.mDialog.findViewById(R.id.tv_cancel);
            if (!TextUtils.isEmpty(str)) {
                editText.setText(str);
                editText.setSelection(str.length());
            }
            if (!TextUtils.isEmpty(str2)) {
                editText2.setText(str2);
                editText2.setSelection(str2.length());
            }
            this.mDialog.getWindow().setSoftInputMode(5);
            if (z) {
                if (Build.VERSION.SDK_INT >= 26) {
                    this.mDialog.getWindow().setType(2038);
                } else {
                    this.mDialog.getWindow().setType(2003);
                }
            }
            textView.setOnClickListener(new View.OnClickListener() {
                public void onClick(View view) {
                    ((InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE)).hideSoftInputFromWindow(editText.getWindowToken(), 0);
                    EditDialogUtil.this.mDialog.dismiss();
                    String obj = editText.getText().toString();
                    String obj2 = editText2.getText().toString();
                    if (TextUtils.isEmpty(obj) || TextUtils.isEmpty(obj2)) {
                        ToastUtil.warning(context.getString(R.string.nepty));
                        return;
                    }
                    if (editMethodXY != null) {
                        editMethodXY.edit(MathUtils.parseInt(obj), MathUtils.parseInt(obj2));
                    }
                }
            });
            textView2.setOnClickListener(new View.OnClickListener() {
                /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass4 */

                public void onClick(View view) {
                    ((InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE)).hideSoftInputFromWindow(editText.getWindowToken(), 0);
                    EditDialogUtil.this.mDialog.dismiss();
                }
            });
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public void editApp(Context context, boolean z, final EditMethodAPP editMethodAPP) {
        try {
            Dialog dialog = this.mDialog;
            if (dialog != null && dialog.isShowing()) {
                this.mDialog.dismiss();
            }
            if (context instanceof MyApp) {
                this.mDialog = LayoutDialogUtil.createSysDailog(context, R.layout.dialog_edit_open_app);
            } else {
                this.mDialog = LayoutDialogUtil.createDailog(context, R.layout.dialog_edit_open_app);
            }
            this.mDialog.setCancelable(false);
            RadioButton radioButton = (RadioButton) this.mDialog.findViewById(R.id.bt_resume);
            final RadioButton radioButton2 = (RadioButton) this.mDialog.findViewById(R.id.bt_new);
            if (z) {
                radioButton2.setChecked(true);
            } else {
                radioButton.setChecked(true);
            }
            ((TextView) this.mDialog.findViewById(R.id.tv_sure)).setOnClickListener(new View.OnClickListener() {
                public void onClick(View view) {
                    EditDialogUtil.this.mDialog.dismiss();
                    if (editMethodAPP != null) {
                        editMethodAPP.edit(radioButton2.isChecked());
                    }
                }
            });
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    private void showPointXY(final Context context, String str, final ActionBean actionBean, LinearLayout linearLayout, TextView textView, final TextView textView2, ImageView imageView, final DetailBean detailBean) {
        linearLayout.setVisibility(View.VISIBLE);
        textView.setText(str + "：");
        textView2.setText("X=" + detailBean.getClickX() + ",Y=" + detailBean.getClickY());
        imageView.setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass6 */

            public void onClick(View view) {
                ClickUtils.onlyVibrate(MyApp.getContext());
                if (detailBean != null) {
                    EditDialogUtil.this.editXY(context, R.layout.dialog_editxy_layout, detailBean.getClickX() + "", detailBean.getClickY() + "", new EditMethodXY() {
                        /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass6.AnonymousClass1 */

                        @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethodXY
                        public void edit(int i, int i2) {
                            detailBean.setClickX(i);
                            detailBean.setClickY(i2);
                            TextView textView = textView2;
                            textView.setText("X=" + detailBean.getClickX() + ",Y=" + detailBean.getClickY());
                            actionBean.setDetail(new Gson().toJson(detailBean));
                        }
                    }, true);
                }
            }
        });
    }

    private void showPointPercent(final Context context, String str, final ActionBean actionBean, LinearLayout linearLayout, TextView textView, final TextView textView2, ImageView imageView, final DetailBean detailBean) {
        linearLayout.setVisibility(View.VISIBLE);
        textView.setText(str + "：");
        textView2.setText("X=" + detailBean.getClickX() + "%,Y=" + detailBean.getClickY() + "%");
        imageView.setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass7 */

            public void onClick(View view) {
                ClickUtils.onlyVibrate(MyApp.getContext());
                if (detailBean != null) {
                    EditDialogUtil.this.editXY(context, R.layout.dialog_editpercent_layout, detailBean.getClickX() + "", detailBean.getClickY() + "", new EditMethodXY() {
                        /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass7.AnonymousClass1 */

                        @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethodXY
                        public void edit(int i, int i2) {
                            detailBean.setClickX(i);
                            detailBean.setClickY(i2);
                            TextView textView = textView2;
                            textView.setText("X=" + detailBean.getClickX() + "%,Y=" + detailBean.getClickY() + "%");
                            actionBean.setDetail(new Gson().toJson(detailBean));
                        }
                    }, true);
                }
            }
        });
    }

    public void sureDialog(Context context, String str, String str2, int i, final setOnSureListener setonsurelistener, boolean z) {
        Dialog dialog = this.mDialog;
        if (dialog != null && dialog.isShowing()) {
            this.mDialog.dismiss();
        }
        if (z) {
            this.mDialog = LayoutDialogUtil.createSysDailog(context, R.layout.dialog_sure_normal);
        } else {
            this.mDialog = LayoutDialogUtil.createDailog(context, R.layout.dialog_sure_normal);
        }
        this.mDialog.setCancelable(true);
        ImageView imageView = (ImageView) this.mDialog.findViewById(R.id.id_img);
        TextView textView = (TextView) this.mDialog.findViewById(R.id.tv_sure);
        ((TextView) this.mDialog.findViewById(R.id.tv_title)).setText(str);
        ((TextView) this.mDialog.findViewById(R.id.tv_content)).setText(str2);
        if (i == 0) {
            imageView.setVisibility(View.GONE);
        } else {
            imageView.setVisibility(View.VISIBLE);
            Glide.with(context).load(Integer.valueOf(i)).into(imageView);
        }
        textView.setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass8 */

            public void onClick(View view) {
                EditDialogUtil.this.mDialog.dismiss();
                if (setonsurelistener != null) {
                    setonsurelistener.sureClick(true);
                }
            }
        });
    }

    public void editUserName(final Context context, String str, String str2, final EditMethodUserName editMethodUserName) {
        try {
            Dialog dialog = this.mDialog;
            if (dialog != null && dialog.isShowing()) {
                this.mDialog.dismiss();
            }
            Dialog createSysDailog = LayoutDialogUtil.createSysDailog(context, R.layout.dialog_edit_username_layout);
            this.mDialog = createSysDailog;
            final EditText editText = (EditText) createSysDailog.findViewById(R.id.editText_name);
            final EditText editText2 = (EditText) this.mDialog.findViewById(R.id.editText_password);
            TextView textView = (TextView) this.mDialog.findViewById(R.id.tv_sure);
            TextView textView2 = (TextView) this.mDialog.findViewById(R.id.tv_cancel);
            if (!TextUtils.isEmpty(str)) {
                editText.setText(str);
                editText.setSelection(str.length());
            }
            if (!TextUtils.isEmpty(str2)) {
                editText2.setText(str2);
                editText2.setSelection(str2.length());
            }
            this.mDialog.getWindow().setSoftInputMode(5);
            if (Build.VERSION.SDK_INT >= 26) {
                this.mDialog.getWindow().setType(2038);
            } else {
                this.mDialog.getWindow().setType(2003);
            }
            textView.setOnClickListener(new View.OnClickListener() {
                /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass9 */

                public void onClick(View view) {
                    ((InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE)).hideSoftInputFromWindow(editText2.getWindowToken(), 0);
                    EditDialogUtil.this.mDialog.dismiss();
                    String obj = editText.getText().toString();
                    String obj2 = editText2.getText().toString();
                    if (TextUtils.isEmpty(obj) || TextUtils.isEmpty(obj2)) {
                        ToastUtil.warning(context.getString(R.string.nepty));
                        return;
                    }
                    if (editMethodUserName != null) {
                        editMethodUserName.edit(obj, obj2);
                    }
                }
            });
            textView2.setOnClickListener(new View.OnClickListener() {
                public void onClick(View view) {
                    ((InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE)).hideSoftInputFromWindow(editText2.getWindowToken(), 0);
                    EditDialogUtil.this.mDialog.dismiss();
                }
            });
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public void editThree(final Context context, String str, String str2, String str3, final EditMethodThree editMethodThree) {
        try {
            Dialog dialog = this.mDialog;
            if (dialog != null && dialog.isShowing()) {
                this.mDialog.dismiss();
            }
            Dialog createSysDailog = LayoutDialogUtil.createSysDailog(context, R.layout.dialog_edit_three_layout);
            this.mDialog = createSysDailog;
            final EditText editText = (EditText) createSysDailog.findViewById(R.id.editText_name);
            final EditText editText2 = (EditText) this.mDialog.findViewById(R.id.editText_phone);
            final EditText editText3 = (EditText) this.mDialog.findViewById(R.id.editText_code);
            TextView textView = (TextView) this.mDialog.findViewById(R.id.tv_sure);
            TextView textView2 = (TextView) this.mDialog.findViewById(R.id.tv_cancel);
            if (!TextUtils.isEmpty(str)) {
                editText.setText(str);
                editText.setSelection(str.length());
            }
            if (!TextUtils.isEmpty(str2)) {
                editText2.setText(str2);
                editText2.setSelection(str2.length());
            }
            if (!TextUtils.isEmpty(str3)) {
                editText3.setText(str3);
                editText3.setSelection(str3.length());
            }
            this.mDialog.getWindow().setSoftInputMode(5);
            if (Build.VERSION.SDK_INT >= 26) {
                this.mDialog.getWindow().setType(2038);
            } else {
                this.mDialog.getWindow().setType(2003);
            }
            textView.setOnClickListener(new View.OnClickListener() {

                public void onClick(View view) {
                    ((InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE)).hideSoftInputFromWindow(editText3.getWindowToken(), 0);
                    EditDialogUtil.this.mDialog.dismiss();
                    String obj = editText.getText().toString();
                    String obj2 = editText2.getText().toString();
                    String obj3 = editText3.getText().toString();
                    if (TextUtils.isEmpty(obj) || TextUtils.isEmpty(obj2) || TextUtils.isEmpty(obj3)) {
                        ToastUtil.warning(context.getString(R.string.nepty));
                        return;
                    }
                    if (editMethodThree != null) {
                        editMethodThree.edit(obj, obj2, obj3);
                    }
                }
            });
            textView2.setOnClickListener(new View.OnClickListener() {
                /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass12 */

                public void onClick(View view) {
                    ((InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE)).hideSoftInputFromWindow(editText3.getWindowToken(), 0);
                    EditDialogUtil.this.mDialog.dismiss();
                }
            });
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public void choseOffSet(Context context, String str, int i, int i2, final OnOffetListener onOffetListener, boolean z) {
        Dialog dialog = this.mDialog;
        if (dialog != null && dialog.isShowing()) {
            this.mDialog.dismiss();
        }
        if (z) {
            this.mDialog = LayoutDialogUtil.createSysDailog(context, R.layout.dialog_offset);
        } else {
            this.mDialog = LayoutDialogUtil.createDailog(context, R.layout.dialog_offset);
        }
        this.mDialog.setCancelable(true);
        final EditText editText = (EditText) this.mDialog.findViewById(R.id.id_offset_x);
        final EditText editText2 = (EditText) this.mDialog.findViewById(R.id.id_offset_y);
        editText.setText(i + "");
        editText2.setText(i2 + "");
        ((TextView) this.mDialog.findViewById(R.id.tv_title)).setText(str);
        ((TextView) this.mDialog.findViewById(R.id.tv_sure)).setOnClickListener(new View.OnClickListener() {

            public void onClick(View view) {
                String trim = editText.getText().toString().trim();
                String trim2 = editText2.getText().toString().trim();
                if (TextUtils.isEmpty(trim) || TextUtils.isEmpty(trim2)) {
                    ToastUtil.warning("内容不能为空！");
                    return;
                }
                int parseInt = MathUtils.parseInt(trim);
                int parseInt2 = MathUtils.parseInt(trim2);
                EditDialogUtil.this.mDialog.dismiss();
                if (onOffetListener != null) {
                    onOffetListener.result(parseInt, parseInt2);
                }
            }
        });
        ((TextView) this.mDialog.findViewById(R.id.tv_cancel)).setOnClickListener(new View.OnClickListener() {

            public void onClick(View view) {
                EditDialogUtil.this.mDialog.dismiss();
            }
        });
    }

    public void gotoAction(Context context, boolean z, int i, ActionBean actionBean, List<ActionBean> list, final OnChoseActionNum onChoseActionNum) {
        Dialog dialog = this.mDialog;
        if (dialog != null && dialog.isShowing()) {
            this.mDialog.dismiss();
        }
        this.mGotoNum = i;
        this.mGotoAction = actionBean;
        Dialog createSysDailog = LayoutDialogUtil.createSysDailog(context, R.layout.dialog_goto_actionlist);
        this.mDialog = createSysDailog;
        createSysDailog.setCancelable(true);
        final EditText editText = (EditText) this.mDialog.findViewById(R.id.editText);
        ((ListView) this.mDialog.findViewById(R.id.id_listview)).setAdapter((ListAdapter) new GotoAdapter(context, list, editText, z));
        TextView textView = (TextView) this.mDialog.findViewById(R.id.tv_cancel);
        TextView textView2 = (TextView) this.mDialog.findViewById(R.id.tv_sure);
        if (z) {
            editText.setVisibility(View.GONE);
        } else {
            editText.setVisibility(View.VISIBLE);
            if (this.mGotoNum == -1) {
                editText.setText("");
            } else {
                editText.setText(this.mGotoNum + "");
            }
        }
        textView2.setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass15 */

            public void onClick(View view) {
                EditDialogUtil.this.mDialog.dismiss();
                if (onChoseActionNum != null) {
                    try {
                        onChoseActionNum.result(MathUtils.parseInt(editText.getText().toString().trim()), EditDialogUtil.this.mGotoAction);
                    } catch (NumberFormatException e) {
                        e.printStackTrace();
                        onChoseActionNum.result(EditDialogUtil.this.mGotoNum, EditDialogUtil.this.mGotoAction);
                    }
                }
            }
        });
        textView.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                EditDialogUtil.this.mDialog.dismiss();
                if (onChoseActionNum != null) {
                    onChoseActionNum.result(EditDialogUtil.this.mGotoNum, EditDialogUtil.this.mGotoAction);
                }
            }
        });
    }

    /* access modifiers changed from: private */
    public class GotoAdapter extends BaseAdapter {
        private Context mContext;
        private EditText mEditText;
        private boolean mIsPlus;
        private List<ActionBean> mList;

        public Object getItem(int i) {
            return null;
        }

        public long getItemId(int i) {
            return 0;
        }

        public GotoAdapter(Context context, List<ActionBean> list, EditText editText, boolean z) {
            this.mContext = context;
            this.mList = list;
            this.mEditText = editText;
            this.mIsPlus = z;
        }

        public int getCount() {
            return this.mList.size();
        }

        public View getView(final int i, View view, ViewGroup viewGroup) {
            View inflate = View.inflate(MyApp.getContext(), R.layout.item_goto, null);
            ImageView imageView = (ImageView) inflate.findViewById(R.id.cb_bg);
            ImageView imageView2 = (ImageView) inflate.findViewById(R.id.cb_bg_gray);
            ImageView imageView3 = (ImageView) inflate.findViewById(R.id.id_img);
            ImageView imageView4 = (ImageView) inflate.findViewById(R.id.id_img_short);
            ImageView imageView5 = (ImageView) inflate.findViewById(R.id.id_goto);
            TextView textView = (TextView) inflate.findViewById(R.id.id_name);
            TextView textView2 = (TextView) inflate.findViewById(R.id.id_detail_text);
            TextView textView3 = (TextView) inflate.findViewById(R.id.id_time);
            final ActionBean actionBean = this.mList.get(i);
            boolean enable = actionBean.getEnable();
            imageView.setVisibility(enable ? View.VISIBLE : View.GONE);
            imageView2.setVisibility(enable ? View.GONE : View.VISIBLE);
            if (FloatUtil.getAutoMs(this.mContext)) {
                textView3.setText(actionBean.getDelay() + this.mContext.getString(R.string.ms_));
            } else {
                textView3.setText(actionBean.getDelay() + this.mContext.getString(R.string.s_));
            }
            textView2.setText(actionBean.getActionName());
            textView.setText(i + ":" + actionBean.getActionName());
            String mark = actionBean.getMark();
            if (TextUtils.isEmpty(mark)) {
                textView2.setText(AutoUtils.getMarkString(actionBean));
            } else {
                textView2.setText(mark);
            }
            String actionType = actionBean.getActionType();
            DetailBean detailBean = (DetailBean) new ArrayGson().fromJson(actionBean.getDetail(), DetailBean.class);
            Constants.ActionEnum findEnum = EditDialogUtil.this.findEnum(actionType);
            if (findEnum != null) {
                actionType.hashCode();
                char c = 65535;
                switch (actionType.hashCode()) {
                    case -833024575:
                        if (actionType.equals(Constants.ACTION_TYPE_RES_DRAP_CLICK_IMG)) {
                            c = 0;
                            break;
                        }
                        break;
                    case -815136703:
                        if (actionType.equals(Constants.ACTION_TYPE_OPEN_APP_NEW)) {
                            c = 1;
                            break;
                        }
                        break;
                    case 4088742:
                        if (actionType.equals(Constants.ACTION_TYPE_CLICK_IMG_OFFSET)) {
                            c = 2;
                            break;
                        }
                        break;
                    case 466857327:
                        if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_IMG_TIMES_RECT)) {
                            c = 3;
                            break;
                        }
                        break;
                    case 484400777:
                        if (actionType.equals(Constants.ACTION_TYPE_RES_LONG_CLICK_IMG)) {
                            c = 4;
                            break;
                        }
                        break;
                    case 500571023:
                        if (actionType.equals(Constants.ACTION_TYPE_DO_INSIGN_AUTO)) {
                            c = 5;
                            break;
                        }
                        break;
                    case 961237000:
                        if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_IMG_ALL)) {
                            c = 6;
                            break;
                        }
                        break;
                    case 1210798333:
                        if (actionType.equals(Constants.ACTION_TYPE_RES_IMG_PICK)) {
                            c = 7;
                            break;
                        }
                        break;
                    case 1563175462:
                        if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_IMG)) {
                            c = '\b';
                            break;
                        }
                        break;
                    case 2144954836:
                        if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_IMG_TIMES)) {
                            c = '\t';
                            break;
                        }
                        break;
                }
                switch (c) {
                    case 0:
                    case 2:
                    case 3:
                    case 4:
                    case 6:
                    case 7:
                    case '\b':
                    case '\t':
                        imageView3.setVisibility(View.GONE);
                        imageView4.setVisibility(View.VISIBLE);
                        Glide.with(this.mContext).load(detailBean.getImgPath()).apply(new RequestOptions().skipMemoryCache(true).diskCacheStrategy(DiskCacheStrategy.NONE).fitCenter()).into(imageView4);
                        break;
                    case 1:
                        imageView3.setVisibility(View.GONE);
                        imageView4.setVisibility(View.VISIBLE);
                        try {
                            imageView4.setImageDrawable(this.mContext.getPackageManager().getApplicationIcon(detailBean.getPackName()));
                            break;
                        } catch (Exception e) {
                            e.printStackTrace();
                            break;
                        }
                    case 5:
                        imageView3.setVisibility(View.VISIBLE);
                        imageView4.setVisibility(View.GONE);
                        Glide.with(this.mContext).load(Integer.valueOf((int) R.drawable.play_auto)).into(imageView3);
                        break;
                    default:
                        imageView3.setVisibility(View.VISIBLE);
                        imageView4.setVisibility(View.GONE);
                        Glide.with(this.mContext).load(Integer.valueOf(findEnum.getImg())).into(imageView3);
                        break;
                }
            } else {
                imageView3.setVisibility(View.VISIBLE);
                imageView4.setVisibility(View.GONE);
            }
            if (this.mIsPlus) {
                if (EditDialogUtil.this.mGotoAction == null) {
                    imageView5.setVisibility(View.INVISIBLE);
                } else if (EditDialogUtil.this.mGotoAction.getActionID().equals(actionBean.getActionID())) {
                    imageView5.setVisibility(View.VISIBLE);
                } else {
                    imageView5.setVisibility(View.INVISIBLE);
                }
            } else if (EditDialogUtil.this.mGotoNum == i) {
                imageView5.setVisibility(View.VISIBLE);
            } else {
                imageView5.setVisibility(View.INVISIBLE);
            }
            inflate.setOnClickListener(new View.OnClickListener() {
                /* class com.lmiot.xyclick.Util.EditDialogUtil.GotoAdapter.AnonymousClass1 */

                public void onClick(View view) {
                    EditText editText = GotoAdapter.this.mEditText;
                    editText.setText(i + "");
                    EditDialogUtil.this.mGotoNum = i;
                    EditDialogUtil.this.mGotoAction = actionBean;
                    GotoAdapter.this.notifyDataSetChanged();
                }
            });
            return inflate;
        }
    }

    public void choseBigger(Context context, String str, final OnBiggerListener onBiggerListener, boolean z) {
        Dialog dialog = this.mDialog;
        if (dialog != null && dialog.isShowing()) {
            this.mDialog.dismiss();
        }
        if (z) {
            this.mDialog = LayoutDialogUtil.createSysDailog(context, R.layout.dialog_chose_bigger);
        } else {
            this.mDialog = LayoutDialogUtil.createDailog(context, R.layout.dialog_chose_bigger);
        }
        this.mDialog.setCancelable(true);
        final TextView textView = (TextView) this.mDialog.findViewById(R.id.id_sign);
        final EditText editText = (EditText) this.mDialog.findViewById(R.id.id_num);
        final RadioButton radioButton = (RadioButton) this.mDialog.findViewById(R.id.id_bt01);
        final RadioButton radioButton2 = (RadioButton) this.mDialog.findViewById(R.id.id_bt02);
        final RadioButton radioButton3 = (RadioButton) this.mDialog.findViewById(R.id.id_bt03);
        final RadioButton radioButton4 = (RadioButton) this.mDialog.findViewById(R.id.id_bt04);
        final RadioButton radioButton5 = (RadioButton) this.mDialog.findViewById(R.id.id_bt05);
        final RadioButton radioButton6 = (RadioButton) this.mDialog.findViewById(R.id.id_bt06);
        radioButton.setText(">");
        radioButton2.setText("<");
        radioButton3.setText("=");
        radioButton4.setText(">=");
        radioButton5.setText("<=");
        radioButton6.setText("!=");
        TextView textView2 = (TextView) this.mDialog.findViewById(R.id.tv_cancel);
        TextView textView3 = (TextView) this.mDialog.findViewById(R.id.tv_sure);
        radioButton.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass17 */

            public void onCheckedChanged(CompoundButton compoundButton, boolean z) {
                if (z) {
                    textView.setText(">");
                }
            }
        });
        radioButton2.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass18 */

            public void onCheckedChanged(CompoundButton compoundButton, boolean z) {
                if (z) {
                    textView.setText("<");
                }
            }
        });
        radioButton3.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass19 */

            public void onCheckedChanged(CompoundButton compoundButton, boolean z) {
                if (z) {
                    textView.setText("=");
                }
            }
        });
        radioButton4.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass20 */

            public void onCheckedChanged(CompoundButton compoundButton, boolean z) {
                if (z) {
                    textView.setText(">=");
                }
            }
        });
        radioButton5.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass21 */

            public void onCheckedChanged(CompoundButton compoundButton, boolean z) {
                if (z) {
                    textView.setText("<=");
                }
            }
        });
        radioButton6.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass22 */

            public void onCheckedChanged(CompoundButton compoundButton, boolean z) {
                if (z) {
                    textView.setText("!=");
                }
            }
        });
        ((TextView) this.mDialog.findViewById(R.id.tv_title)).setText(str);
        textView3.setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass23 */

            public void onClick(View view) {
                String obj = editText.getText().toString();
                if (TextUtils.isEmpty(obj)) {
                    ToastUtil.warning("内容不能为空！");
                    return;
                }
                radioButton.isChecked();
                String str = radioButton2.isChecked() ? Constants.SIGN_SAMLL : Constants.SIGN_BIG;
                if (radioButton3.isChecked()) {
                    str = Constants.SIGN_EQUAL;
                }
                if (radioButton4.isChecked()) {
                    str = Constants.SIGN_BIG_AND_EQUAL;
                }
                if (radioButton5.isChecked()) {
                    str = Constants.SIGN_SMAL_AND_EQUAL;
                }
                if (radioButton6.isChecked()) {
                    str = Constants.SIGN_NOT_EQUAL;
                }
                EditDialogUtil.this.mDialog.dismiss();
                if (onBiggerListener != null) {
                    try {
                        onBiggerListener.result(str, MathUtils.parseInt(obj));
                    } catch (Exception e) {
                        e.printStackTrace();
                    }
                }
            }
        });
        textView2.setOnClickListener(new View.OnClickListener() {

            public void onClick(View view) {
                EditDialogUtil.this.mDialog.dismiss();
            }
        });
    }

    public void choseColor(Context context, final String str, String str2, int i, int i2, Rect rect, String str3, final OnColorListener onColorListener, boolean z) {
        Dialog dialog = this.mDialog;
        if (dialog != null && dialog.isShowing()) {
            this.mDialog.dismiss();
        }
        if (z) {
            this.mDialog = LayoutDialogUtil.createSysDailog(context, R.layout.dialog_chose_color);
        } else {
            this.mDialog = LayoutDialogUtil.createDailog(context, R.layout.dialog_chose_color);
        }
        this.mIfBeanLocation = null;
        this.mDialog.setCancelable(true);
        TextView textView = (TextView) this.mDialog.findViewById(R.id.tv_title);
        LinearLayout linearLayout = (LinearLayout) this.mDialog.findViewById(R.id.id_x_layout);
        LinearLayout linearLayout2 = (LinearLayout) this.mDialog.findViewById(R.id.id_y_layout);
        LinearLayout linearLayout3 = (LinearLayout) this.mDialog.findViewById(R.id.id_rect_layout);
        final EditText editText = (EditText) this.mDialog.findViewById(R.id.id_rect);
        LinearLayout linearLayout4 = (LinearLayout) this.mDialog.findViewById(R.id.id_full_layout);
        final EditText editText2 = (EditText) this.mDialog.findViewById(R.id.id_edit_x);
        final EditText editText3 = (EditText) this.mDialog.findViewById(R.id.id_edit_y);
        final EditText editText4 = (EditText) this.mDialog.findViewById(R.id.id_edit_color);
        final View findViewById = this.mDialog.findViewById(R.id.id_color_view);
        TextView textView2 = (TextView) this.mDialog.findViewById(R.id.tv_cancel);
        TextView textView3 = (TextView) this.mDialog.findViewById(R.id.tv_sure);
        if (str.equals("xy")) {
            linearLayout.setVisibility(View.VISIBLE);
            linearLayout2.setVisibility(View.VISIBLE);
            editText2.setText(i + "");
            editText3.setText(i2 + "");
        } else if (str.equals("full")) {
            linearLayout4.setVisibility(View.VISIBLE);
        } else if (str.equals("rect")) {
            linearLayout3.setVisibility(View.VISIBLE);
            editText.setText(rect.left + "," + rect.top + "," + rect.right + "," + rect.bottom);
        }
        try {
            findViewById.setBackgroundColor(Color.parseColor("#" + str3));
            editText4.setText(str3);
            editText4.addTextChangedListener(new TextWatcher() {

                public void afterTextChanged(Editable editable) {
                }

                public void beforeTextChanged(CharSequence charSequence, int i, int i2, int i3) {
                }

                public void onTextChanged(CharSequence charSequence, int i, int i2, int i3) {
                    String upperCase = charSequence.toString().trim().toUpperCase();
                    if (Pattern.compile("^([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$").matcher(upperCase).find()) {
                        View view = findViewById;
                        view.setBackgroundColor(Color.parseColor("#" + upperCase));
                    }
                }
            });
        } catch (Exception e) {
            e.printStackTrace();
        }
        textView.setText(str2);
        textView3.setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass26 */

            public void onClick(View view) {
                String trim = editText2.getText().toString().trim();
                String trim2 = editText3.getText().toString().trim();
                String trim3 = editText.getText().toString().trim();
                String trim4 = editText4.getText().toString().trim();
                if (str.equals("xy") && (TextUtils.isEmpty(trim) || TextUtils.isEmpty(trim2) || TextUtils.isEmpty(trim4))) {
                    ToastUtil.warning("内容不能为空！");
                } else if (!str.equals("rect") || (!TextUtils.isEmpty(trim3) && !TextUtils.isEmpty(trim4))) {
                    String upperCase = trim4.toUpperCase();
                    if (!Pattern.compile("^([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$").matcher(upperCase).find()) {
                        ToastUtil.warning("颜色表达式有误，请重新输入！");
                        return;
                    }
                    EditDialogUtil.this.mDialog.dismiss();
                    if (onColorListener != null) {
                        try {
                            IfBeanColor ifBeanColor = new IfBeanColor();
                            ifBeanColor.setColor(upperCase);
                            if (str.equals("xy")) {
                                ifBeanColor.setLocationX(trim);
                                ifBeanColor.setLocationY(trim2);
                                ifBeanColor.setName("#" + upperCase + "(" + trim + "," + trim2 + ")");
                            } else if (str.equals("rect")) {
                                String[] split = trim3.split(",");
                                ifBeanColor.setRect(new Rect(MathUtils.parseInt(split[0]), MathUtils.parseInt(split[2]), MathUtils.parseInt(split[2]), MathUtils.parseInt(split[3])));
                                ifBeanColor.setName("#" + upperCase + "(" + trim3 + ")");
                            } else {
                                ifBeanColor.setName("#" + upperCase + "(全屏)");
                            }
                            onColorListener.result(ifBeanColor);
                        } catch (Exception e) {
                            e.printStackTrace();
                        }
                    }
                } else {
                    ToastUtil.warning("内容不能为空！");
                }
            }
        });
        textView2.setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass27 */

            public void onClick(View view) {
                EditDialogUtil.this.mDialog.dismiss();
            }
        });
    }

    public void choseColorList(Context context, Rect rect, List<String> list, final OnColorListener onColorListener, boolean z) {
        Dialog dialog = this.mDialog;
        if (dialog != null && dialog.isShowing()) {
            this.mDialog.dismiss();
        }
        if (z) {
            this.mDialog = LayoutDialogUtil.createSysDailog(context, R.layout.dialog_chose_colorlist);
        } else {
            this.mDialog = LayoutDialogUtil.createDailog(context, R.layout.dialog_chose_colorlist);
        }
        if (list == null) {
            list = new ArrayList<>();
        }
        this.mChoseColorList = new ArrayList();
        for (String str : list) {
            this.mChoseColorList.add(str);
        }
        this.mIfBeanLocation = null;
        this.mDialog.setCancelable(true);
        TextView textView = (TextView) this.mDialog.findViewById(R.id.tv_title);
        final TextView textView2 = (TextView) this.mDialog.findViewById(R.id.empty);
        LinearLayout linearLayout = (LinearLayout) this.mDialog.findViewById(R.id.id_rect_layout);
        final EditText editText = (EditText) this.mDialog.findViewById(R.id.id_rect);
        final ListView listView = (ListView) this.mDialog.findViewById(R.id.id_listview);
        final TextView textView3 = (TextView) this.mDialog.findViewById(R.id.tv_cancel);
        TextView textView4 = (TextView) this.mDialog.findViewById(R.id.tv_sure);
        editText.setText(rect.left + "," + rect.top + "," + rect.right + "," + rect.bottom);
        if (this.mChoseColorList.size() == 0) {
            textView2.setVisibility(View.VISIBLE);
            listView.setVisibility(View.GONE);
            textView3.setText("添加");
        } else {
            textView2.setVisibility(View.GONE);
            listView.setVisibility(View.VISIBLE);
            textView3.setText("继续添加");
        }
        ColorAdapter colorAdapter = new ColorAdapter(this.mChoseColorList, textView2, listView, textView3);
        this.mColorAdapter = colorAdapter;
        listView.setAdapter((ListAdapter) colorAdapter);
        textView4.setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass28 */

            public void onClick(View view) {
                String trim = editText.getText().toString().trim();
                if (TextUtils.isEmpty(trim)) {
                    ToastUtil.warning("内容不能为空！");
                } else if (EditDialogUtil.this.mChoseColorList.size() == 0) {
                    ToastUtil.warning("请至少选择一个颜色点！");
                } else {
                    EditDialogUtil.this.mDialog.dismiss();
                    if (onColorListener != null) {
                        try {
                            IfBeanColor ifBeanColor = new IfBeanColor();
                            ifBeanColor.setColorList(EditDialogUtil.this.mChoseColorList);
                            ifBeanColor.setName(EditDialogUtil.this.mChoseColorList.size() + "个颜色点");
                            String[] split = trim.split(",");
                            ifBeanColor.setRect(new Rect(MathUtils.parseInt(split[0]), MathUtils.parseInt(split[2]), MathUtils.parseInt(split[2]), MathUtils.parseInt(split[3])));
                            onColorListener.result(ifBeanColor);
                        } catch (Exception e) {
                            e.printStackTrace();
                        }
                    }
                }
            }
        });
        textView3.setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass29 */

            public void onClick(View view) {
                EditDialogUtil.this.mDialog.dismiss();
                if (MyApp.mOnActionViewLongClickListener == null) {
                    ClickUtils.onlyVice(MyApp.getContext());
                    ToastUtil.info("请拖动瞄准图标，然后长按选择");
                    FloatManager.show(InitFloatBean.FloatType.action);
                    MyApp.mOnActionViewLongClickListener = new MyApp.OnActionViewLongClickListener() {

                        @Override // com.lmiot.xyclick.App.MyApp.OnActionViewLongClickListener
                        public void result(final int i, final int i2) {
                            MyApp.mOnActionViewLongClickListener = null;
                            FloatManager.hide(InitFloatBean.FloatType.action);
                            YYScreenCutSDK.getInstance().cutFull(MyApp.getContext(), new YYScreenCutSDK.OnCutListener() {
                                /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass29.AnonymousClass1.AnonymousClass1 */

                                @Override // com.youyi.yyscreencutlibrary.SDK.YYScreenCutSDK.OnCutListener
                                public void result(boolean z, Bitmap bitmap) {
                                    String colorByXY = YYScreenCutSDK.getColorByXY(bitmap, i, i2, true);
                                    FloatManager.show(InitFloatBean.FloatType.action);
                                    EditDialogUtil.this.mChoseColorList.add(colorByXY);
                                    if (EditDialogUtil.this.mChoseColorList.size() == 0) {
                                        textView2.setVisibility(View.VISIBLE);
                                        listView.setVisibility(View.GONE);
                                        textView3.setText("添加");
                                    } else {
                                        textView2.setVisibility(View.GONE);
                                        listView.setVisibility(View.VISIBLE);
                                        textView3.setText("继续添加");
                                    }
                                    EditDialogUtil.this.mColorAdapter.notifyDataSetChanged();
                                    EditDialogUtil.this.mDialog.show();
                                }
                            });
                        }
                    };
                    return;
                }
                EditDialogUtil.this.mDialog.dismiss();
            }
        });
    }

    /* access modifiers changed from: private */
    public class ColorAdapter extends BaseAdapter {
        private TextView mCancel;
        private TextView mEmpty;
        private List<String> mList;
        private ListView mListView;

        public Object getItem(int i) {
            return null;
        }

        public long getItemId(int i) {
            return 0;
        }

        public ColorAdapter(List<String> list, TextView textView, ListView listView, TextView textView2) {
            this.mList = list;
            this.mEmpty = textView;
            this.mListView = listView;
            this.mCancel = textView2;
        }

        public int getCount() {
            return this.mList.size();
        }

        public View getView(final int i, View view, ViewGroup viewGroup) {
            View inflate = View.inflate(MyApp.getContext(), R.layout.item_color_list, null);
            EditText editText = (EditText) inflate.findViewById(R.id.id_edit_color);
            final View findViewById = inflate.findViewById(R.id.id_color_view);
            String str = this.mList.get(i);
            ((ImageView) inflate.findViewById(R.id.id_del)).setOnClickListener(new View.OnClickListener() {
                /* class com.lmiot.xyclick.Util.EditDialogUtil.ColorAdapter.AnonymousClass1 */

                public void onClick(View view) {
                    ColorAdapter.this.mList.remove(i);
                    EditDialogUtil.this.mChoseColorList = ColorAdapter.this.mList;
                    if (EditDialogUtil.this.mChoseColorList.size() == 0) {
                        ColorAdapter.this.mEmpty.setVisibility(View.VISIBLE);
                        ColorAdapter.this.mListView.setVisibility(View.GONE);
                        ColorAdapter.this.mCancel.setText("添加");
                    } else {
                        ColorAdapter.this.mEmpty.setVisibility(View.GONE);
                        ColorAdapter.this.mListView.setVisibility(View.VISIBLE);
                        ColorAdapter.this.mCancel.setText("继续添加");
                    }
                    ColorAdapter.this.notifyDataSetChanged();
                }
            });
            try {
                findViewById.setBackgroundColor(Color.parseColor("#" + str));
                editText.setText(str);
                editText.addTextChangedListener(new TextWatcher() {
                    /* class com.lmiot.xyclick.Util.EditDialogUtil.ColorAdapter.AnonymousClass2 */

                    public void afterTextChanged(Editable editable) {
                    }

                    public void beforeTextChanged(CharSequence charSequence, int i, int i2, int i3) {
                    }

                    public void onTextChanged(CharSequence charSequence, int i, int i2, int i3) {
                        String upperCase = charSequence.toString().trim().toUpperCase();
                        if (Pattern.compile("^([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$").matcher(upperCase).find()) {
                            View view = findViewById;
                            view.setBackgroundColor(Color.parseColor("#" + upperCase));
                            ColorAdapter.this.mList.set(i, upperCase);
                            EditDialogUtil.this.mChoseColorList = ColorAdapter.this.mList;
                        }
                    }
                });
            } catch (Exception e) {
                e.printStackTrace();
            }
            return inflate;
        }
    }

    public void choseTimer(final Context context, String str, final OnTimerListener onTimerListener, boolean z) {
        Dialog dialog = this.mDialog;
        if (dialog != null && dialog.isShowing()) {
            this.mDialog.dismiss();
        }
        if (z) {
            this.mDialog = LayoutDialogUtil.createSysDailog(context, R.layout.dialog_chose_timer);
        } else {
            this.mDialog = LayoutDialogUtil.createDailog(context, R.layout.dialog_chose_timer);
        }
        this.mDialog.setCancelable(true);
        final TextView textView = (TextView) this.mDialog.findViewById(R.id.id_time_start);
        final TextView textView2 = (TextView) this.mDialog.findViewById(R.id.id_time_end);
        this.mDateStart = null;
        this.mDateEnd = null;
        ((TextView) this.mDialog.findViewById(R.id.id_time_start_add)).setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass30 */

            public void onClick(View view) {
                YYSDK.getInstance().choseTime(context, "请选择开始时间", true, true, 0, 0, 0, new OnTimeBack() {

                    @Override // com.youyi.yyviewsdklibrary.Dialog.interfaces.OnTimeBack
                    public void result(int i, int i2, int i3) {
                        try {
                            String str = i + "";
                            if (str.length() == 1) {
                                str = "0" + str;
                            }
                            String str2 = i2 + "";
                            if (str2.length() == 1) {
                                str2 = "0" + str2;
                            }
                            String str3 = i3 + "";
                            if (str3.length() == 1) {
                                str3 = "0" + str3;
                            }
                            String str4 = str + ":" + str2 + ":" + str3;
                            textView.setText(str4);
                            EditDialogUtil.this.mDateStart = new SimpleDateFormat("HH:mm:ss").parse(str4);
                        } catch (ParseException e) {
                            e.printStackTrace();
                        }
                    }
                });
            }
        });
        ((TextView) this.mDialog.findViewById(R.id.id_time_end_add)).setOnClickListener(new View.OnClickListener() {

            public void onClick(View view) {
                YYSDK.getInstance().choseTime(context, "请选择结束时间", true, true, 0, 0, 0, new OnTimeBack() {

                    @Override // com.youyi.yyviewsdklibrary.Dialog.interfaces.OnTimeBack
                    public void result(int i, int i2, int i3) {
                        try {
                            String str = i + "";
                            if (str.length() == 1) {
                                str = "0" + str;
                            }
                            String str2 = i2 + "";
                            if (str2.length() == 1) {
                                str2 = "0" + str2;
                            }
                            String str3 = i3 + "";
                            if (str3.length() == 1) {
                                str3 = "0" + str3;
                            }
                            String str4 = str + ":" + str2 + ":" + str3;
                            textView2.setText(str4);
                            EditDialogUtil.this.mDateEnd = new SimpleDateFormat("HH:mm:ss").parse(str4);
                        } catch (ParseException e) {
                            e.printStackTrace();
                        }
                    }
                });
            }
        });
        ((TextView) this.mDialog.findViewById(R.id.tv_title)).setText(str);
        ((TextView) this.mDialog.findViewById(R.id.tv_sure)).setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass32 */

            public void onClick(View view) {
                if (EditDialogUtil.this.mDateStart == null || EditDialogUtil.this.mDateEnd == null) {
                    ToastUtil.warning("内容不能为空！");
                } else if (EditDialogUtil.this.mDateStart.getTime() >= EditDialogUtil.this.mDateEnd.getTime()) {
                    ToastUtil.warning("开始时间必须小于结束时间！");
                } else {
                    EditDialogUtil.this.mDialog.dismiss();
                    if (onTimerListener != null) {
                        onTimerListener.result((String) DateFormat.format("HH:mm:ss", EditDialogUtil.this.mDateStart), (String) DateFormat.format("HH:mm:ss", EditDialogUtil.this.mDateEnd));
                    }
                }
            }
        });
        ((TextView) this.mDialog.findViewById(R.id.tv_cancel)).setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass33 */

            public void onClick(View view) {
                EditDialogUtil.this.mDialog.dismiss();
            }
        });
    }

    public void choseMaxAndMin(Context context, String str, final OnMaxMinListener onMaxMinListener, boolean z) {
        Dialog dialog = this.mDialog;
        if (dialog != null && dialog.isShowing()) {
            this.mDialog.dismiss();
        }
        if (z) {
            this.mDialog = LayoutDialogUtil.createSysDailog(context, R.layout.dialog_chose_max_min);
        } else {
            this.mDialog = LayoutDialogUtil.createDailog(context, R.layout.dialog_chose_max_min);
        }
        this.mDialog.setCancelable(true);
        final EditText editText = (EditText) this.mDialog.findViewById(R.id.id_edit_min);
        final EditText editText2 = (EditText) this.mDialog.findViewById(R.id.id_edit_max);
        ((TextView) this.mDialog.findViewById(R.id.tv_title)).setText(str);
        ((TextView) this.mDialog.findViewById(R.id.tv_sure)).setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass34 */

            public void onClick(View view) {
                String trim = editText.getText().toString().trim();
                String trim2 = editText2.getText().toString().trim();
                if (TextUtils.isEmpty(trim) || TextUtils.isEmpty(trim2)) {
                    ToastUtil.warning("内容不能为空！");
                    return;
                }
                int parseInt = MathUtils.parseInt(trim);
                int parseInt2 = MathUtils.parseInt(trim2);
                if (parseInt > parseInt2) {
                    ToastUtil.warning("最小值不能大于最大值！");
                    return;
                }
                EditDialogUtil.this.mDialog.dismiss();
                if (onMaxMinListener != null) {
                    onMaxMinListener.result(parseInt, parseInt2);
                }
            }
        });
        ((TextView) this.mDialog.findViewById(R.id.tv_cancel)).setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass35 */

            public void onClick(View view) {
                EditDialogUtil.this.mDialog.dismiss();
            }
        });
    }

    public void sendEmail(Context context, String str, String str2, String str3, final OnEmailChangeListener onEmailChangeListener) {
        Dialog dialog = this.mDialog;
        if (dialog != null && dialog.isShowing()) {
            this.mDialog.dismiss();
        }
        Dialog createSysDailog = LayoutDialogUtil.createSysDailog(context, R.layout.dialog_email_manager);
        this.mDialog = createSysDailog;
        createSysDailog.setCancelable(true);
        final EditText editText = (EditText) this.mDialog.findViewById(R.id.id_edit_address);
        final EditText editText2 = (EditText) this.mDialog.findViewById(R.id.id_edit_title);
        final EditText editText3 = (EditText) this.mDialog.findViewById(R.id.id_edit_msg);
        editText.setText(str);
        editText2.setText(str2);
        editText3.setText(str3);
        ((TextView) this.mDialog.findViewById(R.id.tv_sure)).setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass36 */

            public void onClick(View view) {
                String trim = editText.getText().toString().trim();
                String trim2 = editText2.getText().toString().trim();
                String trim3 = editText3.getText().toString().trim();
                if (TextUtils.isEmpty(trim) || TextUtils.isEmpty(trim2) || TextUtils.isEmpty(trim3)) {
                    ToastUtil.warning("内容不能为空！");
                    return;
                }
                EditDialogUtil.this.mDialog.dismiss();
                if (onEmailChangeListener != null) {
                    onEmailChangeListener.result(trim, trim2, trim3);
                }
            }
        });
        ((TextView) this.mDialog.findViewById(R.id.tv_cancel)).setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass37 */

            public void onClick(View view) {
                EditDialogUtil.this.mDialog.dismiss();
            }
        });
    }

    public void httpMethodInput(Context context, String str, String str2, final OnHTTPChangeListener onHTTPChangeListener) {
        Dialog dialog = this.mDialog;
        if (dialog != null && dialog.isShowing()) {
            this.mDialog.dismiss();
        }
        Dialog createSysDailog = LayoutDialogUtil.createSysDailog(context, R.layout.dialog_http_manager);
        this.mDialog = createSysDailog;
        createSysDailog.setCancelable(true);
        final RadioButton radioButton = (RadioButton) this.mDialog.findViewById(R.id.id_bt1);
        RadioButton radioButton2 = (RadioButton) this.mDialog.findViewById(R.id.id_bt2);
        final EditText editText = (EditText) this.mDialog.findViewById(R.id.id_edit_msg);
        TextView textView = (TextView) this.mDialog.findViewById(R.id.tv_cancel);
        TextView textView2 = (TextView) this.mDialog.findViewById(R.id.tv_sure);
        if (TextUtils.isEmpty(str)) {
            str = "get";
        }
        if (str.equals("get")) {
            radioButton.setChecked(true);
        } else {
            radioButton2.setChecked(true);
        }
        editText.setText(str2);
        textView2.setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass38 */

            public void onClick(View view) {
                String trim = editText.getText().toString().trim();
                if (TextUtils.isEmpty(trim)) {
                    ToastUtil.warning("url不能为空！");
                    return;
                }
                EditDialogUtil.this.mDialog.dismiss();
                if (onHTTPChangeListener == null) {
                    return;
                }
                if (radioButton.isChecked()) {
                    onHTTPChangeListener.result("get", trim);
                } else {
                    onHTTPChangeListener.result("post", trim);
                }
            }
        });
        textView.setOnClickListener(new View.OnClickListener() {

            public void onClick(View view) {
                EditDialogUtil.this.mDialog.dismiss();
            }
        });
    }

    public void sendMsg(Context context, String str, String str2, final OnMsgChangeListener onMsgChangeListener) {
        Dialog dialog = this.mDialog;
        if (dialog != null && dialog.isShowing()) {
            this.mDialog.dismiss();
        }
        Dialog createSysDailog = LayoutDialogUtil.createSysDailog(context, R.layout.dialog_msg_manager);
        this.mDialog = createSysDailog;
        createSysDailog.setCancelable(true);
        final EditText editText = (EditText) this.mDialog.findViewById(R.id.id_edit_phone);
        final EditText editText2 = (EditText) this.mDialog.findViewById(R.id.id_edit_msg);
        editText.setText(str);
        editText2.setText(str2);
        ((TextView) this.mDialog.findViewById(R.id.tv_sure)).setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass40 */

            public void onClick(View view) {
                String trim = editText.getText().toString().trim();
                String trim2 = editText2.getText().toString().trim();
                if (TextUtils.isEmpty(trim) || TextUtils.isEmpty(trim2)) {
                    ToastUtil.warning("内容不能为空！");
                    return;
                }
                EditDialogUtil.this.mDialog.dismiss();
                if (onMsgChangeListener != null) {
                    onMsgChangeListener.result(trim, trim2);
                }
            }
        });
        ((TextView) this.mDialog.findViewById(R.id.tv_cancel)).setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass41 */

            public void onClick(View view) {
                EditDialogUtil.this.mDialog.dismiss();
            }
        });
    }

    public void showLogicList(final Context context, List<IfBean> list, final OnLogicListener onLogicListener) {
        Dialog dialog = this.mDialog;
        if (dialog != null && dialog.isShowing()) {
            this.mDialog.dismiss();
        }
        this.mDialog = LayoutDialogUtil.createSysDailog(context, R.layout.dialog_chose_logiclist);
        this.mIfBeanList = list;
        if (list == null) {
            this.mIfBeanList = new ArrayList();
        }
        this.mDialog.setCancelable(true);
        ListView listView = (ListView) this.mDialog.findViewById(R.id.id_listivew);
        TextView textView = (TextView) this.mDialog.findViewById(R.id.id_empty);
        TextView textView2 = (TextView) this.mDialog.findViewById(R.id.tv_sure);
        TextView textView3 = (TextView) this.mDialog.findViewById(R.id.tv_cancel);
        if (this.mIfBeanList.size() == 0) {
            textView.setVisibility(View.VISIBLE);
            listView.setVisibility(View.GONE);
        } else {
            textView.setVisibility(View.GONE);
            listView.setVisibility(View.VISIBLE);
        }
        List<IfBean> list2 = this.mIfBeanList;
        if (list2 != null) {
            if (list2.size() > 5) {
                listView.setLayoutParams(new LinearLayout.LayoutParams(-1, DpUtil.dip2px(MyApp.getContext(), 400.0f)));
            } else {
                listView.setLayoutParams(new LinearLayout.LayoutParams(-1, -2));
            }
        }
        listView.setAdapter((ListAdapter) new LogicAdapter());
        textView2.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                EditDialogUtil.this.mDialog.dismiss();
                if (onLogicListener != null) {
                    onLogicListener.result(EditDialogUtil.this.mIfBeanList);
                }
            }
        });
        textView3.setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass43 */

            public void onClick(View view) {
                EditDialogUtil.this.mDialog.dismiss();
                ChoseActionIFUtil.getInstance().showChoseDialog("选择一个判断条件", new ChoseActionIFUtil.OnChoseIfBeanListener() {
                    /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass43.AnonymousClass1 */

                    @Override // com.lmiot.xyclick.Method.ChoseActionIFUtil.OnChoseIfBeanListener
                    public void result(IfBean ifBean) {
                        EditDialogUtil.this.mIfBeanList.add(ifBean);
                        EditDialogUtil.this.showLogicList(context, EditDialogUtil.this.mIfBeanList, onLogicListener);
                    }
                });
            }
        });
    }

    /* access modifiers changed from: private */
    public class LogicAdapter extends BaseAdapter {
        public Object getItem(int i) {
            return null;
        }

        public long getItemId(int i) {
            return 0;
        }

        private LogicAdapter() {
        }

        public int getCount() {
            return EditDialogUtil.this.mIfBeanList.size();
        }

        public View getView(final int i, View view, ViewGroup viewGroup) {
            View inflate = View.inflate(MyApp.getContext(), R.layout.item_logic, null);
            final TextView textView = (TextView) inflate.findViewById(R.id.id_logic);
            Spinner spinner = (Spinner) inflate.findViewById(R.id.id_spinner);
            ImageView imageView = (ImageView) inflate.findViewById(R.id.id_del);
            final IfBean ifBean = (IfBean) EditDialogUtil.this.mIfBeanList.get(i);
            ((TextView) inflate.findViewById(R.id.id_name)).setText(ifBean.getIfName());
            String logic = ifBean.getLogic();
            if (TextUtils.isEmpty(logic)) {
                logic = Constants.LogicType_AND;
            }
            spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
                /* class com.lmiot.xyclick.Util.EditDialogUtil.LogicAdapter.AnonymousClass1 */

                @Override // android.widget.AdapterView.OnItemSelectedListener
                public void onNothingSelected(AdapterView<?> adapterView) {
                }

                @Override // android.widget.AdapterView.OnItemSelectedListener
                public void onItemSelected(AdapterView<?> adapterView, View view, int i, long j) {
                    if (i == 0) {
                        textView.setText("&&");
                        ifBean.setLogic(Constants.LogicType_AND);
                    } else if (i == 1) {
                        textView.setText("||");
                        ifBean.setLogic(Constants.LogicType_OR);
                    } else if (i == 2) {
                        textView.setText("!");
                        ifBean.setLogic(Constants.LogicType_NOT);
                    }
                    EditDialogUtil.this.mIfBeanList.set(i, ifBean);
                }
            });
            logic.hashCode();
            char c = 65535;
            switch (logic.hashCode()) {
                case 3555:
                    if (logic.equals(Constants.LogicType_OR)) {
                        c = 0;
                        break;
                    }
                    break;
                case 96727:
                    if (logic.equals(Constants.LogicType_AND)) {
                        c = 1;
                        break;
                    }
                    break;
                case 109267:
                    if (logic.equals(Constants.LogicType_NOT)) {
                        c = 2;
                        break;
                    }
                    break;
            }
            switch (c) {
                case 0:
                    textView.setText("||");
                    spinner.setSelection(1, true);
                    break;
                case 1:
                    textView.setText("&");
                    spinner.setSelection(0, true);
                    break;
                case 2:
                    textView.setText("!");
                    spinner.setSelection(2, true);
                    break;
            }
            imageView.setOnClickListener(new View.OnClickListener() {
                public void onClick(View view) {
                    ClickUtils.onlyVibrate(MyApp.getContext());
                    EditDialogUtil.this.mIfBeanList.remove(i);
                    LogicAdapter.this.notifyDataSetChanged();
                }
            });
            return inflate;
        }
    }

    public void showPointList(final Context context, boolean z, String str, List<PointBean> list, final OnPointChoseListener onPointChoseListener, boolean z2) {
        Dialog dialog = this.mDialog;
        if (dialog != null && dialog.isShowing()) {
            this.mDialog.dismiss();
        }
        this.mPointBeanList = list;
        if (z2) {
            this.mDialog = LayoutDialogUtil.createSysDailog(context, R.layout.dialog_chose_pointlist);
        } else {
            this.mDialog = LayoutDialogUtil.createDailog(context, R.layout.dialog_chose_pointlist);
        }
        this.mDialog.setCancelable(true);
        ListView listView = (ListView) this.mDialog.findViewById(R.id.id_listivew);
        TextView textView = (TextView) this.mDialog.findViewById(R.id.tv_cancel);
        View findViewById = this.mDialog.findViewById(R.id.id_line);
        TextView textView2 = (TextView) this.mDialog.findViewById(R.id.tv_sure);
        ((TextView) this.mDialog.findViewById(R.id.tv_title)).setText(str);
        if (z) {
            textView.setVisibility(View.GONE);
            findViewById.setVisibility(View.GONE);
        } else {
            textView.setVisibility(View.VISIBLE);
            findViewById.setVisibility(View.VISIBLE);
        }
        if (this.mPointBeanList.size() > 8) {
            listView.setLayoutParams(new LinearLayout.LayoutParams(-1, DpUtil.dip2px(MyApp.getContext(), 400.0f)));
        } else {
            listView.setLayoutParams(new LinearLayout.LayoutParams(-1, -2));
        }
        final PointManager pointManager = new PointManager(context);
        listView.setAdapter((ListAdapter) pointManager);
        textView2.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                EditDialogUtil.this.mDialog.dismiss();
                if (onPointChoseListener != null) {
                    onPointChoseListener.result(EditDialogUtil.this.mPointBeanList);
                }
            }
        });
        textView.setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass45 */

            public void onClick(View view) {
                EditDialogUtil.this.mDialog.dismiss();
                if (MyApp.mOnActionViewLongClickListener == null) {
                    ClickUtils.onlyVice(context);
                    ToastUtil.warning("拖动瞄准图标，然后长按！");
                    FloatManager.show(InitFloatBean.FloatType.action);
                    MyApp.mOnActionViewLongClickListener = new MyApp.OnActionViewLongClickListener() {
                        /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass45.AnonymousClass1 */

                        @Override // com.lmiot.xyclick.App.MyApp.OnActionViewLongClickListener
                        public void result(int i, int i2) {
                            MyApp.mOnActionViewLongClickListener = null;
                            FloatManager.hide(InitFloatBean.FloatType.action);
                            EditDialogUtil.this.mPointBeanList.add(new PointBean(i, i2));
                            pointManager.notifyDataSetChanged();
                            EditDialogUtil.this.mDialog.show();
                        }
                    };
                    return;
                }
                EditDialogUtil.this.mDialog.dismiss();
            }
        });
    }

    /* access modifiers changed from: private */
    public class PointManager extends BaseAdapter {
        Context mContext;

        public Object getItem(int i) {
            return null;
        }

        public long getItemId(int i) {
            return 0;
        }

        public PointManager(Context context) {
            this.mContext = context;
        }

        public int getCount() {
            return EditDialogUtil.this.mPointBeanList.size();
        }

        public View getView(final int i, View view, ViewGroup viewGroup) {
            View inflate = View.inflate(this.mContext, R.layout.item_point_manager, null);
            EditText editText = (EditText) inflate.findViewById(R.id.id_edit_x);
            EditText editText2 = (EditText) inflate.findViewById(R.id.id_edit_y);
            ((TextView) inflate.findViewById(R.id.id_name)).setText("位置" + (i + 1));
            editText.setText(((PointBean) EditDialogUtil.this.mPointBeanList.get(i)).getX() + "");
            editText2.setText(((PointBean) EditDialogUtil.this.mPointBeanList.get(i)).getY() + "");
            editText.addTextChangedListener(new TextWatcher() {
                /* class com.lmiot.xyclick.Util.EditDialogUtil.PointManager.AnonymousClass1 */

                public void afterTextChanged(Editable editable) {
                }

                public void beforeTextChanged(CharSequence charSequence, int i, int i2, int i3) {
                }

                public void onTextChanged(CharSequence charSequence, int i, int i2, int i3) {
                    try {
                        ((PointBean) EditDialogUtil.this.mPointBeanList.get(i)).setX(MathUtils.parseInt(charSequence.toString().trim()));
                    } catch (Exception e) {
                        e.printStackTrace();
                    }
                }
            });
            editText2.addTextChangedListener(new TextWatcher() {
                /* class com.lmiot.xyclick.Util.EditDialogUtil.PointManager.AnonymousClass2 */

                public void afterTextChanged(Editable editable) {
                }

                public void beforeTextChanged(CharSequence charSequence, int i, int i2, int i3) {
                }

                public void onTextChanged(CharSequence charSequence, int i, int i2, int i3) {
                    try {
                        ((PointBean) EditDialogUtil.this.mPointBeanList.get(i)).setY(MathUtils.parseInt(charSequence.toString().trim()));
                    } catch (Exception e) {
                        e.printStackTrace();
                    }
                }
            });
            ((ImageView) inflate.findViewById(R.id.id_del)).setOnClickListener(new View.OnClickListener() {
                /* class com.lmiot.xyclick.Util.EditDialogUtil.PointManager.AnonymousClass3 */

                public void onClick(View view) {
                    ClickUtils.onlyVibrate(PointManager.this.mContext);
                    EditDialogUtil.this.mPointBeanList.remove(i);
                    PointManager.this.notifyDataSetChanged();
                }
            });
            return inflate;
        }
    }

    public void showThreeList(Context context, List<TextThreeBean> list, final OnTextThreeListListener onTextThreeListListener) {
        Dialog dialog = this.mDialogThree;
        if (dialog != null && dialog.isShowing()) {
            this.mDialogThree.dismiss();
        }
        this.mThreeList = list;
        if (list == null) {
            this.mThreeList = new ArrayList();
        }
        Dialog createSysDailog = LayoutDialogUtil.createSysDailog(context, R.layout.dialog_chose_three);
        this.mDialogThree = createSysDailog;
        createSysDailog.setCancelable(true);
        this.mThreelistView = (ListView) this.mDialogThree.findViewById(R.id.id_listivew);
        ((TextView) this.mDialogThree.findViewById(R.id.tv_sure)).setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass46 */

            public void onClick(View view) {
                EditDialogUtil.this.mDialogThree.dismiss();
                if (onTextThreeListListener != null) {
                    onTextThreeListListener.result(EditDialogUtil.this.mThreeList);
                }
            }
        });
        ((TextView) this.mDialogThree.findViewById(R.id.tv_cancel)).setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass47 */

            public void onClick(View view) {
                EditDialogUtil.this.mDialogThree.dismiss();
            }
        });
        this.mThreelistView.setAdapter((ListAdapter) new ThreeBeanAdapter(context));
    }

    /* access modifiers changed from: private */
    public class ThreeBeanAdapter extends BaseAdapter {
        Context mContext;

        public Object getItem(int i) {
            return null;
        }

        public long getItemId(int i) {
            return 0;
        }

        public ThreeBeanAdapter(Context context) {
            this.mContext = context;
        }

        public int getCount() {
            if (EditDialogUtil.this.mThreeList == null) {
                return 1;
            }
            return 1 + EditDialogUtil.this.mThreeList.size();
        }

        public View getView(final int i, View view, ViewGroup viewGroup) {
            View inflate = View.inflate(MyApp.getContext(), R.layout.item_three_lib, null);
            ImageView imageView = (ImageView) inflate.findViewById(R.id.id_del);
            ImageView imageView2 = (ImageView) inflate.findViewById(R.id.id_edit);
            TextView textView = (TextView) inflate.findViewById(R.id.id_name);
            TextView textView2 = (TextView) inflate.findViewById(R.id.id_phone);
            TextView textView3 = (TextView) inflate.findViewById(R.id.id_code);
            LinearLayout linearLayout = (LinearLayout) inflate.findViewById(R.id.id_main_layout);
            LinearLayout linearLayout2 = (LinearLayout) inflate.findViewById(R.id.id_add);
            if (i == EditDialogUtil.this.mThreeList.size()) {
                linearLayout.setVisibility(View.GONE);
                linearLayout2.setVisibility(View.VISIBLE);
                linearLayout2.setOnLongClickListener(new View.OnLongClickListener() {
                    public boolean onLongClick(View view) {
                        EditDialogUtil.this.mDialogThree.hide();
                        YYPickSDK.getInstance(ThreeBeanAdapter.this.mContext).choseFile("txt", 1, true, new YYPickSDK.OnPickListener() {
                            @Override // com.youyi.yyfilepickerlibrary.SDK.YYPickSDK.OnPickListener
                            public void result(boolean z, String str, List<String> list) {
                                if (z) {
                                    try {
                                        String[] split = FileUtils.ReadTxtFile(list.get(0)).split("\\n");
                                        ArrayList<String> arrayList = new ArrayList();
                                        if (split.length > 0) {
                                            for (String str2 : split) {
                                                arrayList.add(str2);
                                            }
                                        }
                                        for (String str3 : arrayList) {
                                            if (str3.contains("#")) {
                                                String[] split2 = str3.split("#");
                                                if (split2.length == 3) {
                                                    EditDialogUtil.this.mThreeList.add(new TextThreeBean(split2[0], split2[1], split2[2]));
                                                }
                                            }
                                        }
                                        ThreeBeanAdapter.this.notifyDataSetChanged();
                                        EditDialogUtil.this.mDialogThree.show();
                                    } catch (Exception e) {
                                        e.printStackTrace();
                                        ToastUtil.err("导入失败！");
                                    }
                                }
                            }
                        });
                        return true;
                    }
                });
                linearLayout2.setOnClickListener(new View.OnClickListener() {
                    /* class com.lmiot.xyclick.Util.EditDialogUtil.ThreeBeanAdapter.AnonymousClass2 */

                    public void onClick(View view) {
                        EditDialogUtil.this.mDialogThree.hide();
                        EditDialogUtil.this.editThree(ThreeBeanAdapter.this.mContext, "", "", "", new EditMethodThree() {
                            /* class com.lmiot.xyclick.Util.EditDialogUtil.ThreeBeanAdapter.AnonymousClass2.AnonymousClass1 */

                            @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethodThree
                            public void edit(String str, String str2, String str3) {
                                EditDialogUtil.this.mThreeList.add(new TextThreeBean(str, str2, str3));
                                ThreeBeanAdapter.this.notifyDataSetChanged();
                                EditDialogUtil.this.mDialogThree.show();
                            }
                        });
                    }
                });
            } else {
                linearLayout.setVisibility(View.VISIBLE);
                linearLayout2.setVisibility(View.GONE);
                textView.setText(((TextThreeBean) EditDialogUtil.this.mThreeList.get(i)).getUserName());
                textView2.setText(((TextThreeBean) EditDialogUtil.this.mThreeList.get(i)).getPhone());
                textView3.setText(((TextThreeBean) EditDialogUtil.this.mThreeList.get(i)).getIDCard());
                imageView.setOnClickListener(new View.OnClickListener() {
                    /* class com.lmiot.xyclick.Util.EditDialogUtil.ThreeBeanAdapter.AnonymousClass3 */

                    public void onClick(View view) {
                        EditDialogUtil.this.mThreeList.remove(i);
                        ThreeBeanAdapter.this.notifyDataSetChanged();
                    }
                });
                imageView2.setOnClickListener(new View.OnClickListener() {
                    /* class com.lmiot.xyclick.Util.EditDialogUtil.ThreeBeanAdapter.AnonymousClass4 */

                    public void onClick(View view) {
                        EditDialogUtil.this.editThree(ThreeBeanAdapter.this.mContext, ((TextThreeBean) EditDialogUtil.this.mThreeList.get(i)).getUserName(), ((TextThreeBean) EditDialogUtil.this.mThreeList.get(i)).getPhone(), ((TextThreeBean) EditDialogUtil.this.mThreeList.get(i)).getIDCard(), new EditMethodThree() {
                            /* class com.lmiot.xyclick.Util.EditDialogUtil.ThreeBeanAdapter.AnonymousClass4.AnonymousClass1 */

                            @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethodThree
                            public void edit(String str, String str2, String str3) {
                                ((TextThreeBean) EditDialogUtil.this.mThreeList.get(i)).setUserName(str);
                                ((TextThreeBean) EditDialogUtil.this.mThreeList.get(i)).setPhone(str2);
                                ((TextThreeBean) EditDialogUtil.this.mThreeList.get(i)).setIDCard(str3);
                                ThreeBeanAdapter.this.notifyDataSetChanged();
                            }
                        });
                    }
                });
            }
            return inflate;
        }
    }

    public void showUserNameList(Context context, List<TextUserName> list, final OnTextUserListListener onTextUserListListener) {
        Dialog dialog = this.mDialogUserName;
        if (dialog != null && dialog.isShowing()) {
            this.mDialogUserName.dismiss();
        }
        this.mUserList = list;
        if (list == null) {
            this.mUserList = new ArrayList();
        }
        Dialog createSysDailog = LayoutDialogUtil.createSysDailog(context, R.layout.dialog_chose_userlist);
        this.mDialogUserName = createSysDailog;
        createSysDailog.setCancelable(true);
        this.mUserNamelistView = (ListView) this.mDialogUserName.findViewById(R.id.id_listivew);
        ((TextView) this.mDialogUserName.findViewById(R.id.tv_sure)).setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass48 */

            public void onClick(View view) {
                EditDialogUtil.this.mDialogUserName.dismiss();
                if (onTextUserListListener != null) {
                    onTextUserListListener.result(EditDialogUtil.this.mUserList);
                }
            }
        });
        ((TextView) this.mDialogUserName.findViewById(R.id.tv_cancel)).setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass49 */

            public void onClick(View view) {
                EditDialogUtil.this.mDialogUserName.dismiss();
            }
        });
        List<TextUserName> list2 = this.mUserList;
        if (list2 != null) {
            if (list2.size() > 8) {
                this.mUserNamelistView.setLayoutParams(new LinearLayout.LayoutParams(-1, DpUtil.dip2px(MyApp.getContext(), 400.0f)));
            } else {
                this.mUserNamelistView.setLayoutParams(new LinearLayout.LayoutParams(-1, -2));
            }
        }
        this.mUserNamelistView.setAdapter((ListAdapter) new UserNameManager(context));
    }

    /* access modifiers changed from: private */
    public class UserNameManager extends BaseAdapter {
        Context mContext;

        public Object getItem(int i) {
            return null;
        }

        public long getItemId(int i) {
            return 0;
        }

        public UserNameManager(Context context) {
            this.mContext = context;
        }

        public int getCount() {
            if (EditDialogUtil.this.mUserList == null) {
                return 1;
            }
            return 1 + EditDialogUtil.this.mUserList.size();
        }

        public View getView(final int i, View view, ViewGroup viewGroup) {
            View inflate = View.inflate(MyApp.getContext(), R.layout.item_user_lib, null);
            ImageView imageView = (ImageView) inflate.findViewById(R.id.id_del);
            ImageView imageView2 = (ImageView) inflate.findViewById(R.id.id_edit);
            TextView textView = (TextView) inflate.findViewById(R.id.id_name);
            TextView textView2 = (TextView) inflate.findViewById(R.id.id_password);
            LinearLayout linearLayout = (LinearLayout) inflate.findViewById(R.id.id_main_layout);
            LinearLayout linearLayout2 = (LinearLayout) inflate.findViewById(R.id.id_add);
            if (i == EditDialogUtil.this.mUserList.size()) {
                linearLayout.setVisibility(View.GONE);
                linearLayout2.setVisibility(View.VISIBLE);
                linearLayout2.setOnLongClickListener(new View.OnLongClickListener() {
                    public boolean onLongClick(View view) {
                        EditDialogUtil.this.mDialogUserName.hide();
                        YYPickSDK.getInstance(UserNameManager.this.mContext).choseFile("txt", 1, true, new YYPickSDK.OnPickListener() {
                            /* class com.lmiot.xyclick.Util.EditDialogUtil.UserNameManager.AnonymousClass1.AnonymousClass1 */

                            @Override // com.youyi.yyfilepickerlibrary.SDK.YYPickSDK.OnPickListener
                            public void result(boolean z, String str, List<String> list) {
                                if (z) {
                                    try {
                                        String[] split = FileUtils.ReadTxtFile(list.get(0)).split("\\n");
                                        ArrayList<String> arrayList = new ArrayList();
                                        if (split.length > 0) {
                                            for (String str2 : split) {
                                                arrayList.add(str2);
                                            }
                                        }
                                        for (String str3 : arrayList) {
                                            if (str3.contains("#")) {
                                                String[] split2 = str3.split("#");
                                                if (split2.length == 2) {
                                                    EditDialogUtil.this.mUserList.add(new TextUserName(split2[0], split2[1]));
                                                }
                                            }
                                        }
                                        if (EditDialogUtil.this.mUserList != null) {
                                            if (EditDialogUtil.this.mUserList.size() > 8) {
                                                EditDialogUtil.this.mUserNamelistView.setLayoutParams(new LinearLayout.LayoutParams(-1, DpUtil.dip2px(MyApp.getContext(), 400.0f)));
                                            } else {
                                                EditDialogUtil.this.mUserNamelistView.setLayoutParams(new LinearLayout.LayoutParams(-1, -2));
                                            }
                                        }
                                        UserNameManager.this.notifyDataSetChanged();
                                        EditDialogUtil.this.mDialogUserName.show();
                                    } catch (Exception e) {
                                        e.printStackTrace();
                                        ToastUtil.err("导入失败！");
                                    }
                                }
                            }
                        });
                        return true;
                    }
                });
                linearLayout2.setOnClickListener(new View.OnClickListener() {
                    /* class com.lmiot.xyclick.Util.EditDialogUtil.UserNameManager.AnonymousClass2 */

                    public void onClick(View view) {
                        EditDialogUtil.this.mDialogUserName.hide();
                        EditDialogUtil.this.editUserName(UserNameManager.this.mContext, "", "", new EditMethodUserName() {
                            /* class com.lmiot.xyclick.Util.EditDialogUtil.UserNameManager.AnonymousClass2.AnonymousClass1 */

                            @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethodUserName
                            public void edit(String str, String str2) {
                                EditDialogUtil.this.mUserList.add(new TextUserName(str, str2));
                                if (EditDialogUtil.this.mUserList != null) {
                                    if (EditDialogUtil.this.mUserList.size() > 8) {
                                        EditDialogUtil.this.mUserNamelistView.setLayoutParams(new LinearLayout.LayoutParams(-1, DpUtil.dip2px(MyApp.getContext(), 400.0f)));
                                    } else {
                                        EditDialogUtil.this.mUserNamelistView.setLayoutParams(new LinearLayout.LayoutParams(-1, -2));
                                    }
                                }
                                UserNameManager.this.notifyDataSetChanged();
                                EditDialogUtil.this.mDialogUserName.show();
                            }
                        });
                    }
                });
            } else {
                linearLayout.setVisibility(View.VISIBLE);
                linearLayout2.setVisibility(View.GONE);
                textView.setText(((TextUserName) EditDialogUtil.this.mUserList.get(i)).getUserName());
                textView2.setText(((TextUserName) EditDialogUtil.this.mUserList.get(i)).getPassword());
                imageView.setOnClickListener(new View.OnClickListener() {
                    /* class com.lmiot.xyclick.Util.EditDialogUtil.UserNameManager.AnonymousClass3 */

                    public void onClick(View view) {
                        EditDialogUtil.this.mUserList.remove(i);
                        UserNameManager.this.notifyDataSetChanged();
                    }
                });
                imageView2.setOnClickListener(new View.OnClickListener() {
                    /* class com.lmiot.xyclick.Util.EditDialogUtil.UserNameManager.AnonymousClass4 */

                    public void onClick(View view) {
                        EditDialogUtil.this.editUserName(UserNameManager.this.mContext, ((TextUserName) EditDialogUtil.this.mUserList.get(i)).getUserName(), ((TextUserName) EditDialogUtil.this.mUserList.get(i)).getPassword(), new EditMethodUserName() {
                            /* class com.lmiot.xyclick.Util.EditDialogUtil.UserNameManager.AnonymousClass4.AnonymousClass1 */

                            @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethodUserName
                            public void edit(String str, String str2) {
                                ((TextUserName) EditDialogUtil.this.mUserList.get(i)).setUserName(str);
                                ((TextUserName) EditDialogUtil.this.mUserList.get(i)).setPassword(str2);
                                UserNameManager.this.notifyDataSetChanged();
                            }
                        });
                    }
                });
            }
            return inflate;
        }
    }

    public void showTextList(Context context, String str, List<String> list, final OnTextListListener onTextListListener, boolean z) {
        Dialog dialog = this.mDialogText;
        if (dialog != null && dialog.isShowing()) {
            this.mDialogText.dismiss();
        }
        this.mStringList = list;
        if (z) {
            this.mDialogText = LayoutDialogUtil.createSysDailog(context, R.layout.dialog_chose_textlist);
        } else {
            this.mDialogText = LayoutDialogUtil.createDailog(context, R.layout.dialog_chose_textlist);
        }
        this.mDialogText.setCancelable(true);
        this.mTextlistView = (ListView) this.mDialogText.findViewById(R.id.id_listivew);
        ((TextView) this.mDialogText.findViewById(R.id.tv_title)).setText(str);
        ((TextView) this.mDialogText.findViewById(R.id.tv_sure)).setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass50 */

            public void onClick(View view) {
                LogUtil.d("EditDialogUtil", new Gson().toJson(EditDialogUtil.this.mStringList));
                EditDialogUtil.this.mDialogText.dismiss();
                if (onTextListListener != null) {
                    onTextListListener.result(EditDialogUtil.this.mStringList);
                }
            }
        });
        ((TextView) this.mDialogText.findViewById(R.id.tv_cancel)).setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass51 */

            public void onClick(View view) {
                EditDialogUtil.this.mDialogText.dismiss();
            }
        });
        List<String> list2 = this.mStringList;
        if (list2 != null) {
            if (list2.size() > 8) {
                this.mTextlistView.setLayoutParams(new LinearLayout.LayoutParams(-1, DpUtil.dip2px(MyApp.getContext(), 400.0f)));
            } else {
                this.mTextlistView.setLayoutParams(new LinearLayout.LayoutParams(-1, -2));
            }
        }
        this.mTextlistView.setAdapter((ListAdapter) new TextManager(context));
    }

    /* access modifiers changed from: private */
    public class TextManager extends BaseAdapter {
        Context mContext;

        public Object getItem(int i) {
            return null;
        }

        public long getItemId(int i) {
            return 0;
        }

        public TextManager(Context context) {
            this.mContext = context;
        }

        public int getCount() {
            if (EditDialogUtil.this.mStringList == null) {
                return 1;
            }
            return 1 + EditDialogUtil.this.mStringList.size();
        }

        public View getView(final int i, View view, ViewGroup viewGroup) {
            View inflate = View.inflate(MyApp.getContext(), R.layout.item_text_lib, null);
            ImageView imageView = (ImageView) inflate.findViewById(R.id.id_del);
            ImageView imageView2 = (ImageView) inflate.findViewById(R.id.id_edit);
            TextView textView = (TextView) inflate.findViewById(R.id.id_name);
            LinearLayout linearLayout = (LinearLayout) inflate.findViewById(R.id.id_main_layout);
            LinearLayout linearLayout2 = (LinearLayout) inflate.findViewById(R.id.id_add);
            if (i == EditDialogUtil.this.mStringList.size()) {
                linearLayout.setVisibility(View.GONE);
                linearLayout2.setVisibility(View.VISIBLE);
                linearLayout2.setOnLongClickListener(new View.OnLongClickListener() {
                    /* class com.lmiot.xyclick.Util.EditDialogUtil.TextManager.AnonymousClass1 */

                    public boolean onLongClick(View view) {
                        EditDialogUtil.this.mDialogText.hide();
                        YYPickSDK.getInstance(TextManager.this.mContext).choseFile("txt", 1, true, new YYPickSDK.OnPickListener() {
                            /* class com.lmiot.xyclick.Util.EditDialogUtil.TextManager.AnonymousClass1.AnonymousClass1 */

                            @Override // com.youyi.yyfilepickerlibrary.SDK.YYPickSDK.OnPickListener
                            public void result(boolean z, String str, List<String> list) {
                                if (z) {
                                    try {
                                        String[] split = FileUtils.ReadTxtFile(list.get(0)).split("\\n");
                                        ArrayList arrayList = new ArrayList();
                                        if (split.length > 0) {
                                            for (String str2 : split) {
                                                arrayList.add(str2);
                                            }
                                        }
                                        EditDialogUtil.this.mStringList.addAll(arrayList);
                                        if (EditDialogUtil.this.mStringList != null) {
                                            if (EditDialogUtil.this.mStringList.size() > 8) {
                                                EditDialogUtil.this.mTextlistView.setLayoutParams(new LinearLayout.LayoutParams(-1, DpUtil.dip2px(MyApp.getContext(), 400.0f)));
                                            } else {
                                                EditDialogUtil.this.mTextlistView.setLayoutParams(new LinearLayout.LayoutParams(-1, -2));
                                            }
                                        }
                                        TextManager.this.notifyDataSetChanged();
                                        EditDialogUtil.this.mDialogText.show();
                                    } catch (Exception e) {
                                        e.printStackTrace();
                                        ToastUtil.err("导入失败！");
                                    }
                                }
                            }
                        });
                        return true;
                    }
                });
                linearLayout2.setOnClickListener(new View.OnClickListener() {
                    /* class com.lmiot.xyclick.Util.EditDialogUtil.TextManager.AnonymousClass2 */

                    public void onClick(View view) {
                        EditDialogUtil.this.mDialogText.hide();
                        EditDialogUtil.this.edit(TextManager.this.mContext, 1, "输入文字", "请输入文字", "", new EditMethod() {
                            /* class com.lmiot.xyclick.Util.EditDialogUtil.TextManager.AnonymousClass2.AnonymousClass1 */

                            @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                            public void edit(String str) {
                                EditDialogUtil.this.mStringList.add(str);
                                if (EditDialogUtil.this.mStringList != null) {
                                    if (EditDialogUtil.this.mStringList.size() > 8) {
                                        EditDialogUtil.this.mTextlistView.setLayoutParams(new LinearLayout.LayoutParams(-1, DpUtil.dip2px(MyApp.getContext(), 400.0f)));
                                    } else {
                                        EditDialogUtil.this.mTextlistView.setLayoutParams(new LinearLayout.LayoutParams(-1, -2));
                                    }
                                }
                                TextManager.this.notifyDataSetChanged();
                                EditDialogUtil.this.mDialogText.show();
                            }
                        }, true);
                    }
                });
            } else {
                linearLayout.setVisibility(View.VISIBLE);
                linearLayout2.setVisibility(View.GONE);
                textView.setText((CharSequence) EditDialogUtil.this.mStringList.get(i));
                imageView.setOnClickListener(new View.OnClickListener() {
                    /* class com.lmiot.xyclick.Util.EditDialogUtil.TextManager.AnonymousClass3 */

                    public void onClick(View view) {
                        EditDialogUtil.this.mStringList.remove(i);
                        TextManager.this.notifyDataSetChanged();
                    }
                });
                imageView2.setOnClickListener(new View.OnClickListener() {
                    /* class com.lmiot.xyclick.Util.EditDialogUtil.TextManager.AnonymousClass4 */

                    public void onClick(View view) {
                        EditDialogUtil.this.edit(TextManager.this.mContext, 1, "修改内容", "请输入文字", (String) EditDialogUtil.this.mStringList.get(i), new EditMethod() {
                            /* class com.lmiot.xyclick.Util.EditDialogUtil.TextManager.AnonymousClass4.AnonymousClass1 */

                            @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                            public void edit(String str) {
                                EditDialogUtil.this.mStringList.set(i, str);
                                TextManager.this.notifyDataSetChanged();
                            }
                        }, true);
                    }
                });
            }
            return inflate;
        }
    }

    public void buttomMenuDialog(Context context, int i, List<MenuBean> list, OnMenuClickListener onMenuClickListener, boolean z, boolean z2) {
        Dialog dialog = this.mDialog;
        if (dialog != null && dialog.isShowing()) {
            this.mDialog.dismiss();
        }
        if (z) {
            this.mDialog = LayoutDialogUtil.createBottomDailog(context, R.layout.dialog_chose_method);
        } else {
            this.mDialog = LayoutDialogUtil.createBottomDailog(context, R.layout.dialog_chose_method);
        }
        ListView listView = (ListView) this.mDialog.findViewById(R.id.id_listview);
        TextView textView = (TextView) this.mDialog.findViewById(R.id.id_cancel);
        if (list != null) {
            if (list.size() > 9) {
                listView.setLayoutParams(new LinearLayout.LayoutParams(-1, DpUtil.dip2px(context, 500.0f)));
            } else {
                listView.setLayoutParams(new LinearLayout.LayoutParams(-1, -2));
            }
        }
        listView.setAdapter((ListAdapter) new MenuAdapter(context, i, list, onMenuClickListener, z2));
        textView.setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass52 */

            public void onClick(View view) {
                EditDialogUtil.this.mDialog.dismiss();
            }
        });
    }

    public class MenuAdapter extends BaseAdapter {
        Context mContext;
        int mEmu;
        boolean mIsDetailRed;
        List<MenuBean> mList;
        OnMenuClickListener mOnMenuClickListener;

        public Object getItem(int i) {
            return null;
        }

        public long getItemId(int i) {
            return 0;
        }

        public MenuAdapter(Context context, int i, List<MenuBean> list, OnMenuClickListener onMenuClickListener, boolean z) {
            this.mContext = context;
            this.mEmu = i;
            this.mList = list;
            this.mOnMenuClickListener = onMenuClickListener;
            this.mIsDetailRed = z;
        }

        public int getCount() {
            return this.mList.size();
        }

        public View getView(final int i, View view, ViewGroup viewGroup) {
            View inflate = View.inflate(this.mContext, R.layout.item_bottom_menu, null);
            TextView textView = (TextView) inflate.findViewById(R.id.id_name);
            TextView textView2 = (TextView) inflate.findViewById(R.id.id_detail);
            ImageView imageView = (ImageView) inflate.findViewById(R.id.id_img);
            textView.setEms(this.mEmu);
            MenuBean menuBean = this.mList.get(i);
            String detail = menuBean.getDetail();
            if (TextUtils.isEmpty(detail)) {
                textView2.setVisibility(View.GONE);
            } else {
                textView2.setVisibility(View.VISIBLE);
                textView2.setText(detail);
                if (this.mIsDetailRed) {
                    textView2.setTextColor(-65536);
                } else {
                    textView2.setTextColor(-7829368);
                }
            }
            textView.setText(menuBean.getName() + "");
            int img = menuBean.getImg();
            if (img == 0) {
                imageView.setVisibility(View.GONE);
            } else {
                imageView.setVisibility(View.VISIBLE);
                try {
                    Glide.with(MyApp.getContext()).load(Integer.valueOf(img)).into(imageView);
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
            inflate.setOnClickListener(new View.OnClickListener() {
                /* class com.lmiot.xyclick.Util.EditDialogUtil.MenuAdapter.AnonymousClass1 */

                public void onClick(View view) {
                    ClickUtils.onlyVibrate(MyApp.getContext());
                    EditDialogUtil.this.mDialog.dismiss();
                    if (MenuAdapter.this.mOnMenuClickListener != null) {
                        MenuAdapter.this.mOnMenuClickListener.click(i);
                    }
                }
            });
            return inflate;
        }
    }

    public void share(final Context context, int i, String str, String str2, String str3, final ShareEditMethod shareEditMethod, boolean z) {
        Dialog dialog = this.mDialog;
        if (dialog != null && dialog.isShowing()) {
            this.mDialog.dismiss();
        }
        this.mFriendBeanChoseList.clear();
        if (z) {
            this.mDialog = LayoutDialogUtil.createSysDailog(context, R.layout.dialog_edit_share_layout);
        } else {
            this.mDialog = LayoutDialogUtil.createDailog(context, R.layout.dialog_edit_share_layout);
        }
        final EditText editText = (EditText) this.mDialog.findViewById(R.id.editText);
        editText.setInputType(i);
        TextView textView = (TextView) this.mDialog.findViewById(R.id.tv_sure);
        TextView textView2 = (TextView) this.mDialog.findViewById(R.id.tv_cancel);
        TextView textView3 = (TextView) this.mDialog.findViewById(R.id.id_add);
        ListView listView = (ListView) this.mDialog.findViewById(R.id.id_listivew);
        ((TextView) this.mDialog.findViewById(R.id.tv_title)).setText(str + "");
        editText.setHint(str2 + "");
        if (!TextUtils.isEmpty(str3)) {
            editText.setText(str3);
            editText.setSelection(str3.length());
        }
        List<FriendBean> searchAll = FriendBeanSqlUtil.getInstance().searchAll();
        if (searchAll.size() == 0) {
            listView.setVisibility(View.GONE);
            textView3.setVisibility(View.VISIBLE);
        } else {
            listView.setVisibility(View.VISIBLE);
            textView3.setVisibility(View.GONE);
            if (searchAll.size() > 5) {
                listView.setLayoutParams(new LinearLayout.LayoutParams(-1, DpUtil.dip2px(context, 300.0f)));
            } else {
                listView.setLayoutParams(new LinearLayout.LayoutParams(-1, -2));
            }
            listView.setAdapter((ListAdapter) new FriendAdapter(context, searchAll, editText));
        }
        textView3.setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass53 */

            public void onClick(View view) {
                ActivityUtil.skipActivity(context, GroupControlActivity.class);
            }
        });
        textView.setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass54 */

            public void onClick(View view) {
                ((InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE)).hideSoftInputFromWindow(editText.getWindowToken(), 0);
                EditDialogUtil.this.mDialog.dismiss();
                String obj = editText.getText().toString();
                if (TextUtils.isEmpty(obj)) {
                    ToastUtil.warning(context.getString(R.string.nepty));
                } else if (shareEditMethod != null) {
                    HashSet hashSet = new HashSet();
                    if (!obj.contains(",")) {
                        hashSet.add(obj);
                    } else {
                        for (String str : obj.split(",")) {
                            hashSet.add(str);
                        }
                    }
                    shareEditMethod.edit(hashSet);
                }
            }
        });
        textView2.setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass55 */

            public void onClick(View view) {
                ((InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE)).hideSoftInputFromWindow(editText.getWindowToken(), 0);
                EditDialogUtil.this.mDialog.dismiss();
            }
        });
    }

    private class FriendAdapter extends BaseAdapter {
        Context mContext;
        EditText mEditText;
        List<FriendBean> mList;

        public Object getItem(int i) {
            return null;
        }

        public long getItemId(int i) {
            return 0;
        }

        public FriendAdapter(Context context, List<FriendBean> list, EditText editText) {
            this.mContext = context;
            this.mList = list;
            this.mEditText = editText;
        }

        public int getCount() {
            return this.mList.size();
        }

        public View getView(int i, View view, ViewGroup viewGroup) {
            View inflate = View.inflate(this.mContext, R.layout.item_chose_friend, null);
            ImageView imageView = (ImageView) inflate.findViewById(R.id.id_checked);
            ImageView imageView2 = (ImageView) inflate.findViewById(R.id.id_unchecked);
            ((TextView) inflate.findViewById(R.id.id_name)).setText(this.mList.get(i).getUserName());
            final String userID = this.mList.get(i).getUserID();
            ((TextView) inflate.findViewById(R.id.id_detail)).setText("ID：" + userID);
            if (!EditDialogUtil.this.mFriendBeanChoseList.contains(userID)) {
                imageView.setVisibility(View.VISIBLE);
                imageView2.setVisibility(View.GONE);
            } else {
                imageView.setVisibility(View.GONE);
                imageView2.setVisibility(View.VISIBLE);
            }
            inflate.setOnClickListener(new View.OnClickListener() {
                /* class com.lmiot.xyclick.Util.EditDialogUtil.FriendAdapter.AnonymousClass1 */

                public void onClick(View view) {
                    if (EditDialogUtil.this.mFriendBeanChoseList.contains(userID)) {
                        EditDialogUtil.this.mFriendBeanChoseList.remove(userID);
                    } else {
                        EditDialogUtil.this.mFriendBeanChoseList.add(userID);
                    }
                    StringBuffer stringBuffer = new StringBuffer();
                    for (String str : EditDialogUtil.this.mFriendBeanChoseList) {
                        stringBuffer.append(str);
                        stringBuffer.append(",");
                    }
                    String trim = stringBuffer.toString().trim();
                    if (trim.endsWith(",")) {
                        trim = trim.substring(0, trim.length() - 1);
                    }
                    FriendAdapter.this.mEditText.setText(trim);
                    FriendAdapter.this.notifyDataSetChanged();
                }
            });
            return inflate;
        }
    }

    public void changPoint(Context context, PointBean pointBean, final OnPointChangeListener onPointChangeListener) {
        Dialog dialog = this.mDialog;
        if (dialog != null && dialog.isShowing()) {
            this.mDialog.dismiss();
        }
        Dialog createSysDailog = LayoutDialogUtil.createSysDailog(context, R.layout.dialog_point_manager);
        this.mDialog = createSysDailog;
        final EditText editText = (EditText) createSysDailog.findViewById(R.id.id_edit_x);
        final EditText editText2 = (EditText) this.mDialog.findViewById(R.id.id_edit_y);
        editText.setText(pointBean.getX() + "");
        editText2.setText(pointBean.getY() + "");
        ((TextView) this.mDialog.findViewById(R.id.tv_cancel)).setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass56 */

            public void onClick(View view) {
                EditDialogUtil.this.mDialog.dismiss();
            }
        });
        ((TextView) this.mDialog.findViewById(R.id.tv_sure)).setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass57 */

            public void onClick(View view) {
                String trim = editText.getText().toString().trim();
                String trim2 = editText2.getText().toString().trim();
                if (TextUtils.isEmpty(trim) || TextUtils.isEmpty(trim2)) {
                    ToastUtil.warning("内容不能为空！");
                    return;
                }
                if (onPointChangeListener != null) {
                    onPointChangeListener.result(new PointBean(MathUtils.parseInt(trim), MathUtils.parseInt(trim2)));
                }
                EditDialogUtil.this.mDialog.dismiss();
            }
        });
    }

    public void changeRect(Context context, Rect rect, final OnRectChangeListener onRectChangeListener) {
        Dialog dialog = this.mDialog;
        if (dialog != null && dialog.isShowing()) {
            this.mDialog.dismiss();
        }
        Dialog createSysDailog = LayoutDialogUtil.createSysDailog(context, R.layout.dialog_rect_manager);
        this.mDialog = createSysDailog;
        final EditText editText = (EditText) createSysDailog.findViewById(R.id.id_edit_left);
        final EditText editText2 = (EditText) this.mDialog.findViewById(R.id.id_edit_top);
        final EditText editText3 = (EditText) this.mDialog.findViewById(R.id.id_edit_right);
        final EditText editText4 = (EditText) this.mDialog.findViewById(R.id.id_edit_bottom);
        editText.setText(rect.left + "");
        editText2.setText(rect.top + "");
        editText3.setText(rect.right + "");
        editText4.setText(rect.bottom + "");
        ((TextView) this.mDialog.findViewById(R.id.tv_cancel)).setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass58 */

            public void onClick(View view) {
                EditDialogUtil.this.mDialog.dismiss();
            }
        });
        ((TextView) this.mDialog.findViewById(R.id.tv_sure)).setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass59 */

            public void onClick(View view) {
                String trim = editText.getText().toString().trim();
                String trim2 = editText2.getText().toString().trim();
                String trim3 = editText3.getText().toString().trim();
                String trim4 = editText4.getText().toString().trim();
                if (TextUtils.isEmpty(trim) || TextUtils.isEmpty(trim2) || TextUtils.isEmpty(trim3) || TextUtils.isEmpty(trim4)) {
                    ToastUtil.warning("内容不能为空！");
                    return;
                }
                if (onRectChangeListener != null) {
                    onRectChangeListener.result(new Rect(MathUtils.parseInt(trim), MathUtils.parseInt(trim2), MathUtils.parseInt(trim3), MathUtils.parseInt(trim4)));
                }
                EditDialogUtil.this.mDialog.dismiss();
            }
        });
    }

    public void detail(final Context context, final ActionBean actionBean, final OnDetailListener onDetailListener) {
        RadioButton radioButton;
        RadioButton radioButton2;
        Dialog dialog = mDialogDetail;
        if (dialog != null && dialog.isShowing()) {
            mDialogDetail.dismiss();
        }
        Dialog createSysDailog = LayoutDialogUtil.createSysDailog(context, R.layout.dialog_change_detail);
        mDialogDetail = createSysDailog;
        createSysDailog.setCancelable(true);
        ImageView imageView = (ImageView) mDialogDetail.findViewById(R.id.id_icon);
        ImageView imageView2 = (ImageView) mDialogDetail.findViewById(R.id.id_icon_app);
        TextView textView = (TextView) mDialogDetail.findViewById(R.id.id_name);
        final TextView textView2 = (TextView) mDialogDetail.findViewById(R.id.id_mark);
        ImageView imageView3 = (ImageView) mDialogDetail.findViewById(R.id.id_mark_eidt);
        TextView textView3 = (TextView) mDialogDetail.findViewById(R.id.tv_cancel);
        TextView textView4 = (TextView) mDialogDetail.findViewById(R.id.tv_sure);
        LinearLayout linearLayout = (LinearLayout) mDialogDetail.findViewById(R.id.id_point_layout);
        TextView textView5 = (TextView) mDialogDetail.findViewById(R.id.id_point);
        TextView textView6 = (TextView) mDialogDetail.findViewById(R.id.id_point_value);
        ImageView imageView4 = (ImageView) mDialogDetail.findViewById(R.id.id_point_edit);
        LinearLayout linearLayout2 = (LinearLayout) mDialogDetail.findViewById(R.id.id_time_layout);
        TextView textView7 = (TextView) mDialogDetail.findViewById(R.id.id_time);
        TextView textView8 = (TextView) mDialogDetail.findViewById(R.id.id_time_value);
        ImageView imageView5 = (ImageView) mDialogDetail.findViewById(R.id.id_time_edit);
        LinearLayout linearLayout3 = (LinearLayout) mDialogDetail.findViewById(R.id.id_time_layout02);
        TextView textView9 = (TextView) mDialogDetail.findViewById(R.id.id_time02);
        TextView textView10 = (TextView) mDialogDetail.findViewById(R.id.id_time_value02);
        ImageView imageView6 = (ImageView) mDialogDetail.findViewById(R.id.id_time_edit02);
        LinearLayout linearLayout4 = (LinearLayout) mDialogDetail.findViewById(R.id.id_rect_layout);
        TextView textView11 = (TextView) mDialogDetail.findViewById(R.id.id_rect);
        TextView textView12 = (TextView) mDialogDetail.findViewById(R.id.id_rect_value);
        TextView textView13 = (TextView) mDialogDetail.findViewById(R.id.id_rect_chose);
        TextView textView14 = (TextView) mDialogDetail.findViewById(R.id.id_rect_edit);
        LinearLayout linearLayout5 = (LinearLayout) mDialogDetail.findViewById(R.id.id_rect_layout_right);
        TextView textView15 = (TextView) mDialogDetail.findViewById(R.id.id_rect_right);
        TextView textView16 = (TextView) mDialogDetail.findViewById(R.id.id_rect_value_right);
        TextView textView17 = (TextView) mDialogDetail.findViewById(R.id.id_rect_chose_right);
        TextView textView18 = (TextView) mDialogDetail.findViewById(R.id.id_rect_edit_right);
        LinearLayout linearLayout6 = (LinearLayout) mDialogDetail.findViewById(R.id.id_pointlist_layout);
        TextView textView19 = (TextView) mDialogDetail.findViewById(R.id.id_pointlist);
        final TextView textView20 = (TextView) mDialogDetail.findViewById(R.id.id_pointlist_value);
        ImageView imageView7 = (ImageView) mDialogDetail.findViewById(R.id.id_pointlist_edit);
        LinearLayout linearLayout7 = (LinearLayout) mDialogDetail.findViewById(R.id.id_text_layout);
        TextView textView21 = (TextView) mDialogDetail.findViewById(R.id.id_text);
        TextView textView22 = (TextView) mDialogDetail.findViewById(R.id.id_text_value);
        ImageView imageView8 = (ImageView) mDialogDetail.findViewById(R.id.id_text_edit);
        LinearLayout linearLayout8 = (LinearLayout) mDialogDetail.findViewById(R.id.id_varname_layout);
        TextView textView23 = (TextView) mDialogDetail.findViewById(R.id.id_varname);
        TextView textView24 = (TextView) mDialogDetail.findViewById(R.id.id_varname_value);
        ImageView imageView9 = (ImageView) mDialogDetail.findViewById(R.id.id_varname_edit);
        LinearLayout linearLayout9 = (LinearLayout) mDialogDetail.findViewById(R.id.id_textlist_layout);
        TextView textView25 = (TextView) mDialogDetail.findViewById(R.id.id_textlist);
        TextView textView26 = (TextView) mDialogDetail.findViewById(R.id.id_textlist_value);
        ImageView imageView10 = (ImageView) mDialogDetail.findViewById(R.id.id_textlist_edit);
        LinearLayout linearLayout10 = (LinearLayout) mDialogDetail.findViewById(R.id.id_range_layout);
        TextView textView27 = (TextView) mDialogDetail.findViewById(R.id.id_range);
        TextView textView28 = (TextView) mDialogDetail.findViewById(R.id.id_range_value);
        ImageView imageView11 = (ImageView) mDialogDetail.findViewById(R.id.id_range_edit);
        LinearLayout linearLayout11 = (LinearLayout) mDialogDetail.findViewById(R.id.id_app_layout);
        RadioButton radioButton3 = (RadioButton) mDialogDetail.findViewById(R.id.bt_resume);
        RadioButton radioButton4 = (RadioButton) mDialogDetail.findViewById(R.id.bt_new);
        LinearLayout linearLayout12 = (LinearLayout) mDialogDetail.findViewById(R.id.id_offset_layout);
        TextView textView29 = (TextView) mDialogDetail.findViewById(R.id.id_offset);
        TextView textView30 = (TextView) mDialogDetail.findViewById(R.id.id_offset_value);
        ImageView imageView12 = (ImageView) mDialogDetail.findViewById(R.id.id_offset_edit);
        LinearLayout linearLayout13 = (LinearLayout) mDialogDetail.findViewById(R.id.id_email_layout);
        TextView textView31 = (TextView) mDialogDetail.findViewById(R.id.id_email);
        final TextView textView32 = (TextView) mDialogDetail.findViewById(R.id.id_email_value);
        ImageView imageView13 = (ImageView) mDialogDetail.findViewById(R.id.id_email_edit);
        LinearLayout linearLayout14 = (LinearLayout) mDialogDetail.findViewById(R.id.id_msg_layout);
        TextView textView33 = (TextView) mDialogDetail.findViewById(R.id.id_msg);
        final TextView textView34 = (TextView) mDialogDetail.findViewById(R.id.id_msg_value);
        ImageView imageView14 = (ImageView) mDialogDetail.findViewById(R.id.id_msg_edit);
        LinearLayout linearLayout15 = (LinearLayout) mDialogDetail.findViewById(R.id.id_img_layout);
        TextView textView35 = (TextView) mDialogDetail.findViewById(R.id.id_img);
        ImageView imageView15 = (ImageView) mDialogDetail.findViewById(R.id.id_img_value);
        TextView textView36 = (TextView) mDialogDetail.findViewById(R.id.id_img_chose);
        TextView textView37 = (TextView) mDialogDetail.findViewById(R.id.id_img_edit);
        LinearLayout linearLayout16 = (LinearLayout) mDialogDetail.findViewById(R.id.id_ifaction_layout);
        TextView textView38 = (TextView) mDialogDetail.findViewById(R.id.id_ifaction);
        TextView textView39 = (TextView) mDialogDetail.findViewById(R.id.id_ifaction_value);
        TextView textView40 = (TextView) mDialogDetail.findViewById(R.id.id_ifaction_edit);
        LinearLayout linearLayout17 = (LinearLayout) mDialogDetail.findViewById(R.id.id_elseaction_layout);
        TextView textView41 = (TextView) mDialogDetail.findViewById(R.id.id_elseaction);
        TextView textView42 = (TextView) mDialogDetail.findViewById(R.id.id_elseaction_value);
        TextView textView43 = (TextView) mDialogDetail.findViewById(R.id.id_elseaction_edit);
        LinearLayout linearLayout18 = (LinearLayout) mDialogDetail.findViewById(R.id.id_ifaction_layout02);
        TextView textView44 = (TextView) mDialogDetail.findViewById(R.id.id_ifaction02);
        TextView textView45 = (TextView) mDialogDetail.findViewById(R.id.id_ifaction_value02);
        TextView textView46 = (TextView) mDialogDetail.findViewById(R.id.id_ifaction_edit02);
        LinearLayout linearLayout19 = (LinearLayout) mDialogDetail.findViewById(R.id.id_elseaction_layout02);
        TextView textView47 = (TextView) mDialogDetail.findViewById(R.id.id_elseaction02);
        TextView textView48 = (TextView) mDialogDetail.findViewById(R.id.id_elseaction_value02);
        TextView textView49 = (TextView) mDialogDetail.findViewById(R.id.id_elseaction_edit02);
        LinearLayout linearLayout20 = (LinearLayout) mDialogDetail.findViewById(R.id.id_ifaction_layout03);
        TextView textView50 = (TextView) mDialogDetail.findViewById(R.id.id_ifaction03);
        TextView textView51 = (TextView) mDialogDetail.findViewById(R.id.id_ifaction_value03);
        TextView textView52 = (TextView) mDialogDetail.findViewById(R.id.id_ifaction_edit03);
        LinearLayout linearLayout21 = (LinearLayout) mDialogDetail.findViewById(R.id.id_elseaction_layout03);
        TextView textView53 = (TextView) mDialogDetail.findViewById(R.id.id_elseaction03);
        TextView textView54 = (TextView) mDialogDetail.findViewById(R.id.id_elseaction_value03);
        TextView textView55 = (TextView) mDialogDetail.findViewById(R.id.id_elseaction_edit03);
        LinearLayout linearLayout22 = (LinearLayout) mDialogDetail.findViewById(R.id.id_bigger_layout);
        TextView textView56 = (TextView) mDialogDetail.findViewById(R.id.id_bigger);
        TextView textView57 = (TextView) mDialogDetail.findViewById(R.id.id_bigger_value);
        ImageView imageView16 = (ImageView) mDialogDetail.findViewById(R.id.id_bigger_edit);
        LinearLayout linearLayout23 = (LinearLayout) mDialogDetail.findViewById(R.id.id_date_layout);
        TextView textView58 = (TextView) mDialogDetail.findViewById(R.id.id_date);
        TextView textView59 = (TextView) mDialogDetail.findViewById(R.id.id_date_value);
        ImageView imageView17 = (ImageView) mDialogDetail.findViewById(R.id.id_date_edit);
        LinearLayout linearLayout24 = (LinearLayout) mDialogDetail.findViewById(R.id.id_location_layout);
        TextView textView60 = (TextView) mDialogDetail.findViewById(R.id.id_location);
        TextView textView61 = (TextView) mDialogDetail.findViewById(R.id.id_location_value);
        ImageView imageView18 = (ImageView) mDialogDetail.findViewById(R.id.id_location_edit);
        LinearLayout linearLayout25 = (LinearLayout) mDialogDetail.findViewById(R.id.id_color_layout);
        TextView textView62 = (TextView) mDialogDetail.findViewById(R.id.id_color);
        TextView textView63 = (TextView) mDialogDetail.findViewById(R.id.id_color_value);
        TextView textView64 = (TextView) mDialogDetail.findViewById(R.id.id_color_chose);
        TextView textView65 = (TextView) mDialogDetail.findViewById(R.id.id_color_edit);
        LinearLayout linearLayout26 = (LinearLayout) mDialogDetail.findViewById(R.id.id_doaction_layout);
        TextView textView66 = (TextView) mDialogDetail.findViewById(R.id.id_doaction);
        TextView textView67 = (TextView) mDialogDetail.findViewById(R.id.id_doaction_value);
        ImageView imageView19 = (ImageView) mDialogDetail.findViewById(R.id.id_doaction_edit);
        LinearLayout linearLayout27 = (LinearLayout) mDialogDetail.findViewById(R.id.id_breakaction_layout);
        TextView textView68 = (TextView) mDialogDetail.findViewById(R.id.id_breakaction);
        TextView textView69 = (TextView) mDialogDetail.findViewById(R.id.id_breakaction_value);
        ImageView imageView20 = (ImageView) mDialogDetail.findViewById(R.id.id_breakaction_edit);
        LinearLayout linearLayout28 = (LinearLayout) mDialogDetail.findViewById(R.id.id_ifbean_layout);
        TextView textView70 = (TextView) mDialogDetail.findViewById(R.id.id_ifbean);
        TextView textView71 = (TextView) mDialogDetail.findViewById(R.id.id_ifbean_value);
        ImageView imageView21 = (ImageView) mDialogDetail.findViewById(R.id.id_ifbean_edit);
        final DetailBean detailBean = (DetailBean) new ArrayGson().fromJson(actionBean.getDetail(), DetailBean.class);
        Constants.ActionEnum findEnum = findEnum(actionBean.getActionType());
        if (actionBean.getActionType().equals(Constants.ACTION_TYPE_OPEN_APP_NEW)) {
            imageView.setVisibility(View.GONE);
            imageView2.setVisibility(View.VISIBLE);
            try {
                imageView2.setImageDrawable(context.getPackageManager().getApplicationIcon(detailBean.getPackName()));
            } catch (Exception e) {
                e.printStackTrace();
            }
        } else {
            try {
                imageView.setVisibility(View.VISIBLE);
                imageView2.setVisibility(View.GONE);
                Glide.with(MyApp.getContext()).load(Integer.valueOf(findEnum.getImg())).into(imageView);
            } catch (Exception e2) {
                e2.printStackTrace();
            }
        }
        textView.setText(findEnum.getName());
        String mark = actionBean.getMark();
        if (mark == null) {
            mark = "";
        }
        textView2.setText(mark);
        imageView3.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                ClickUtils.onlyVibrate(MyApp.getContext());
                EditDialogUtil.this.edit(context, 1, "修改备注", "请输入备注信息", actionBean.getMark(), new EditMethod() {

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                    public void edit(String str) {
                        actionBean.setMark(str);
                        textView2.setText(str);
                    }
                }, true);
            }
        });
        textView4.setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass61 */

            public void onClick(View view) {
                ClickUtils.onlyVibrate(MyApp.getContext());
                EditDialogUtil.mDialogDetail.dismiss();
                if (onDetailListener != null) {
                    onDetailListener.result(actionBean);
                }
            }
        });
        textView3.setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass62 */

            public void onClick(View view) {
                ClickUtils.onlyVibrate(MyApp.getContext());
                EditDialogUtil.mDialogDetail.dismiss();
            }
        });
        String actionType = actionBean.getActionType();
        actionType.hashCode();
        char c = 65535;
        switch (actionType.hashCode()) {
            case -1962927546:
                if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_TEXT_ONE_ALL)) {
                    c = 0;
                    break;
                }
                break;
            case -1962914365:
                if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_TEXT_OCR)) {
                    c = 1;
                    break;
                }
                break;
            case -1815477287:
                if (actionType.equals(Constants.ACTION_TYPE_IF_BIG)) {
                    c = 2;
                    break;
                }
                break;
            case -1815473246:
                if (actionType.equals(Constants.ACTION_TYPE_IF_FOR)) {
                    c = 3;
                    break;
                }
                break;
            case -1815463837:
                if (actionType.equals(Constants.ACTION_TYPE_IF_IMG)) {
                    c = 4;
                    break;
                }
                break;
            case -1806167109:
                if (actionType.equals(Constants.ACTION_TYPE_IF_STR_LENGTH)) {
                    c = 5;
                    break;
                }
                break;
            case -1803988169:
                if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_TIMES)) {
                    c = 6;
                    break;
                }
                break;
            case -1748612358:
                if (actionType.equals(Constants.ACTION_TYPE_RANDOM_INPUT_TEXT)) {
                    c = 7;
                    break;
                }
                break;
            case -1747771512:
                if (actionType.equals(Constants.ACTION_CLICK_PERCENT_XY)) {
                    c = '\b';
                    break;
                }
                break;
            case -1720712411:
                if (actionType.equals(Constants.ACTION_TYPE_RANDOM_DELAY_TIME)) {
                    c = '\t';
                    break;
                }
                break;
            case -1688822809:
                if (actionType.equals(Constants.ACTION_TYPE_VIEW_FIND_ID_HAND)) {
                    c = '\n';
                    break;
                }
                break;
            case -1688461147:
                if (actionType.equals(Constants.ACTION_TYPE_VIEW_FIND_TEXT)) {
                    c = 11;
                    break;
                }
                break;
            case -1688376083:
                if (actionType.equals(Constants.ACTION_TYPE_VIEW_FIND_ID_WAIT)) {
                    c = '\f';
                    break;
                }
                break;
            case -1654991382:
                if (actionType.equals(Constants.ACTION_TYPE_RES_INPUT_TEXT)) {
                    c = '\r';
                    break;
                }
                break;
            case -1614455551:
                if (actionType.equals(Constants.ACTION_TYPE_IF_PLUS_GOTO)) {
                    c = 14;
                    break;
                }
                break;
            case -1573253640:
                if (actionType.equals(Constants.ACTION_TYPE_VIEW_LISTVIEW)) {
                    c = 15;
                    break;
                }
                break;
            case -1554995982:
                if (actionType.equals(Constants.ACTION_TYPE_REMOTE_RUN)) {
                    c = 16;
                    break;
                }
                break;
            case -1465745048:
                if (actionType.equals(Constants.ACTION_TYPE_IF_BIG_ANDROID)) {
                    c = 17;
                    break;
                }
                break;
            case -1431420264:
                if (actionType.equals(Constants.ACTION_TYPE_RES_SWIP_PATHLISt)) {
                    c = 18;
                    break;
                }
                break;
            case -1350871331:
                if (actionType.equals(Constants.ACTION_TYPE_RES_SWIP_DRAP_TO)) {
                    c = 19;
                    break;
                }
                break;
            case -1282707776:
                if (actionType.equals(Constants.ACTION_TYPE_IF_WAIT_IMG)) {
                    c = 20;
                    break;
                }
                break;
            case -1210206765:
                if (actionType.equals(Constants.ACTION_TYPE_RES_INPUT_TEXT_LIST)) {
                    c = 21;
                    break;
                }
                break;
            case -1184644365:
                if (actionType.equals(Constants.ACTION_TYPE_VIEW_CLICK_ALL_HAND)) {
                    c = 22;
                    break;
                }
                break;
            case -1172618801:
                if (actionType.equals(Constants.ACTION_TYPE_IF_TEXT_RECT)) {
                    c = 23;
                    break;
                }
                break;
            case -1160002021:
                if (actionType.equals(Constants.ACTION_TYPE_RES_INPUT_TEXT_BY_HTTP)) {
                    c = 24;
                    break;
                }
                break;
            case -1159719049:
                if (actionType.equals(Constants.ACTION_TYPE_RES_INPUT_TEXT_RECT)) {
                    c = 25;
                    break;
                }
                break;
            case -1132382251:
                if (actionType.equals(Constants.ACTION_TYPE_CLICK_TEXT_OFFSET_RECT)) {
                    c = 26;
                    break;
                }
                break;
            case -1131150297:
                if (actionType.equals(Constants.ACTION_TYPE_RES_IMG_DELAY)) {
                    c = 27;
                    break;
                }
                break;
            case -1108914736:
                if (actionType.equals(Constants.ACTION_TYPE_IF_WAIT_TEXT)) {
                    c = 28;
                    break;
                }
                break;
            case -1070378249:
                if (actionType.equals(Constants.ACTION_TYPE_RANDOM_INPUT_MAX_MIN)) {
                    c = 29;
                    break;
                }
                break;
            case -1066784745:
                if (actionType.equals(Constants.ACTION_TYPE_IF_FOR_PLUS)) {
                    c = 30;
                    break;
                }
                break;
            case -1044171476:
                if (actionType.equals(Constants.ACTION_TYPE_TOOL_SEND_EMAIL)) {
                    c = 31;
                    break;
                }
                break;
            case -960206213:
                if (actionType.equals(Constants.ACTION_TYPE_REMOTE_STOP)) {
                    c = ' ';
                    break;
                }
                break;
            case -935451011:
                if (actionType.equals(Constants.ACTION_TYPE_RES_LONG_CLICK_Points)) {
                    c = '!';
                    break;
                }
                break;
            case -921545414:
                if (actionType.equals(Constants.ACTION_TYPE_PAST_TEXT)) {
                    c = '\"';
                    break;
                }
                break;
            case -915840004:
                if (actionType.equals(Constants.ACTION_TYPE_IF_COLOR)) {
                    c = '#';
                    break;
                }
                break;
            case -907533321:
                if (actionType.equals(Constants.ACTION_TYPE_IF_LOGIC)) {
                    c = '$';
                    break;
                }
                break;
            case -897581110:
                if (actionType.equals(Constants.ACTION_TYPE_IF_WHILE)) {
                    c = '%';
                    break;
                }
                break;
            case -887424920:
                if (actionType.equals(Constants.ACTION_TYPE_IF_BIG_AND_DOT)) {
                    c = '&';
                    break;
                }
                break;
            case -863936354:
                if (actionType.equals(Constants.ACTION_TYPE_LIST_INPUT_THREE)) {
                    c = '\'';
                    break;
                }
                break;
            case -833024575:
                if (actionType.equals(Constants.ACTION_TYPE_RES_DRAP_CLICK_IMG)) {
                    c = '(';
                    break;
                }
                break;
            case -818317168:
                if (actionType.equals(Constants.ACTION_TYPE_VIEW_FIND_CHECKED)) {
                    c = ')';
                    break;
                }
                break;
            case -815136703:
                if (actionType.equals(Constants.ACTION_TYPE_OPEN_APP_NEW)) {
                    c = '*';
                    break;
                }
                break;
            case -776535233:
                if (actionType.equals(Constants.ACTION_TYPE_LIST_INPUT_TEXT)) {
                    c = '+';
                    break;
                }
                break;
            case -772684081:
                if (actionType.equals(Constants.ACTION_TYPE_RES_SWIP_A_TO_B)) {
                    c = ',';
                    break;
                }
                break;
            case -747218534:
                if (actionType.equals(Constants.ACTION_TYPE_VIEW_FIND_DES)) {
                    c = '-';
                    break;
                }
                break;
            case -741443391:
                if (actionType.equals(Constants.ACTION_TYPE_TOOL_GET_RECT_TECT)) {
                    c = '.';
                    break;
                }
                break;
            case -735797586:
                if (actionType.equals(Constants.ACTION_TYPE_IF_TEXT_RECT_OCR)) {
                    c = '/';
                    break;
                }
                break;
            case -720712225:
                if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_TEXT_RECT)) {
                    c = '0';
                    break;
                }
                break;
            case -702563113:
                if (actionType.equals(Constants.ACTION_CLICK_XY)) {
                    c = '1';
                    break;
                }
                break;
            case -667301681:
                if (actionType.equals(Constants.ACTION_TYPE_VIEW_FIND_TEXT_WAIT)) {
                    c = '2';
                    break;
                }
                break;
            case -666784441:
                if (actionType.equals(Constants.ACTION_TYPE_RES_LONG_CLICK_TEXT)) {
                    c = '3';
                    break;
                }
                break;
            case -666741787:
                if (actionType.equals(Constants.ACTION_TYPE_RES_LONG_CLICK_TIMES)) {
                    c = '4';
                    break;
                }
                break;
            case -635002049:
                if (actionType.equals(Constants.ACTION_TYPE_VIEW_CLICK_ALL)) {
                    c = '5';
                    break;
                }
                break;
            case -605553427:
                if (actionType.equals(Constants.ACTION_TYPE_IF_STR_START)) {
                    c = '6';
                    break;
                }
                break;
            case -604104575:
                if (actionType.equals(Constants.ACTION_TYPE_VIEW_FIND_ID_WAIT_HAND)) {
                    c = '7';
                    break;
                }
                break;
            case -581264932:
                if (actionType.equals(Constants.ACTION_TYPE_RES_LONG_CLICK_TEXT_RECT)) {
                    c = '8';
                    break;
                }
                break;
            case -557756589:
                if (actionType.equals(Constants.ACTION_TYPE_ACLIST)) {
                    c = '9';
                    break;
                }
                break;
            case -488247915:
                if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK)) {
                    c = ':';
                    break;
                }
                break;
            case -445065814:
                if (actionType.equals(Constants.ACTION_TYPE_IF_GOTO)) {
                    c = ';';
                    break;
                }
                break;
            case -444688012:
                if (actionType.equals(Constants.ACTION_TYPE_IF_TEXT)) {
                    c = '<';
                    break;
                }
                break;
            case -444684524:
                if (actionType.equals(Constants.ACTION_TYPE_IF_TIME)) {
                    c = '=';
                    break;
                }
                break;
            case -444602948:
                if (actionType.equals(Constants.ACTION_TYPE_IF_WAIT)) {
                    c = '>';
                    break;
                }
                break;
            case -416479067:
                if (actionType.equals(Constants.ACTION_TYPE_TOOL_CALL)) {
                    c = '?';
                    break;
                }
                break;
            case -368281682:
                if (actionType.equals(Constants.ACTION_TYPE_CLICK_TEXT_OFFSET)) {
                    c = '@';
                    break;
                }
                break;
            case -287244634:
                if (actionType.equals(Constants.ACTION_TYPE_TOOL_OPEN_WEB)) {
                    c = 'A';
                    break;
                }
                break;
            case -240233156:
                if (actionType.equals(Constants.ACTION_TYPE_RES_INPUT_TEXT_POSITION)) {
                    c = 'B';
                    break;
                }
                break;
            case -31627645:
                if (actionType.equals(Constants.ACTION_TYPE_RES_DOUBLE_CLICK)) {
                    c = 'C';
                    break;
                }
                break;
            case 4088742:
                if (actionType.equals(Constants.ACTION_TYPE_CLICK_IMG_OFFSET)) {
                    c = 'D';
                    break;
                }
                break;
            case 207152864:
                if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_TEXT_OCR_RECT)) {
                    c = 'E';
                    break;
                }
                break;
            case 236872539:
                if (actionType.equals(Constants.ACTION_TYPE_VIEW_WAIT_AND_CLICK_ID)) {
                    c = 'F';
                    break;
                }
                break;
            case 250989520:
                if (actionType.equals(Constants.ACTION_TYPE_VIEW_FIND_PACKNAME)) {
                    c = 'G';
                    break;
                }
                break;
            case 400341985:
                if (actionType.equals(Constants.ACTION_TYPE_PHONE_SPEAK)) {
                    c = 'H';
                    break;
                }
                break;
            case 466857327:
                if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_IMG_TIMES_RECT)) {
                    c = 'I';
                    break;
                }
                break;
            case 471723478:
                if (actionType.equals(Constants.ACTION_TYPE_LIST_INPUT_TEXT_USERNAME)) {
                    c = 'J';
                    break;
                }
                break;
            case 479822062:
                if (actionType.equals(Constants.ACTION_TYPE_RES_SWIP_PLUS)) {
                    c = 'K';
                    break;
                }
                break;
            case 484400777:
                if (actionType.equals(Constants.ACTION_TYPE_RES_LONG_CLICK_IMG)) {
                    c = 'L';
                    break;
                }
                break;
            case 616245594:
                if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_Points)) {
                    c = 'M';
                    break;
                }
                break;
            case 641427902:
                if (actionType.equals(Constants.ACTION_TYPE_PHONE_VIBRATE)) {
                    c = 'N';
                    break;
                }
                break;
            case 716062712:
                if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_TEXT_LAST)) {
                    c = 'O';
                    break;
                }
                break;
            case 716254006:
                if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_TEXT_RNUM)) {
                    c = 'P';
                    break;
                }
                break;
            case 716390103:
                if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_TEXT_WAIT)) {
                    c = 'Q';
                    break;
                }
                break;
            case 732456607:
                if (actionType.equals(Constants.ACTION_TYPE_IF_STR_CONTAIN)) {
                    c = 'R';
                    break;
                }
                break;
            case 773008305:
                if (actionType.equals(Constants.ACTION_TYPE_VIEW_WAIT_ACTIVITY)) {
                    c = 'S';
                    break;
                }
                break;
            case 819178436:
                if (actionType.equals(Constants.ACTION_TYPE_TOOL_QQ_TALK)) {
                    c = 'T';
                    break;
                }
                break;
            case 921420644:
                if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_TEXT_ONE)) {
                    c = 'U';
                    break;
                }
                break;
            case 1070540303:
                if (actionType.equals(Constants.ACTION_TYPE_IF_COLOR_SCREEN)) {
                    c = 'V';
                    break;
                }
                break;
            case 1091167288:
                if (actionType.equals(Constants.ACTION_TYPE_SET_SCREEN)) {
                    c = 'W';
                    break;
                }
                break;
            case 1143857607:
                if (actionType.equals(Constants.ACTION_TYPE_VIEW_FIND_ID)) {
                    c = 'X';
                    break;
                }
                break;
            case 1187973862:
                if (actionType.equals(Constants.ACTION_TYPE_SET_VOLUME)) {
                    c = 'Y';
                    break;
                }
                break;
            case 1210798333:
                if (actionType.equals(Constants.ACTION_TYPE_RES_IMG_PICK)) {
                    c = 'Z';
                    break;
                }
                break;
            case 1276644898:
                if (actionType.equals(Constants.ACTION_TYPE_IF_FOR_BREAK)) {
                    c = '[';
                    break;
                }
                break;
            case 1319262272:
                if (actionType.equals(Constants.ACTION_TYPE_RES_LONG_CLICK_TIMES_MS)) {
                    c = '\\';
                    break;
                }
                break;
            case 1359443941:
                if (actionType.equals(Constants.ACTION_TYPE_RES_LONG_CLICK)) {
                    c = ']';
                    break;
                }
                break;
            case 1399827896:
                if (actionType.equals(Constants.ACTION_TYPE_IF_COLOR_MORE)) {
                    c = '^';
                    break;
                }
                break;
            case 1399966791:
                if (actionType.equals(Constants.ACTION_TYPE_IF_COLOR_RECT)) {
                    c = '_';
                    break;
                }
                break;
            case 1464841489:
                if (actionType.equals(Constants.ACTION_TYPE_TOOL_SEND_MSG)) {
                    c = '`';
                    break;
                }
                break;
            case 1563175462:
                if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_IMG)) {
                    c = 'a';
                    break;
                }
                break;
            case 1576991116:
                if (actionType.equals(Constants.ACTION_TYPE_VIEW_CLICK_N)) {
                    c = 'b';
                    break;
                }
                break;
            case 1763285971:
                if (actionType.equals(Constants.ACTION_TYPE_IF_TEXT_OCR)) {
                    c = 'c';
                    break;
                }
                break;
            case 1789971089:
                if (actionType.equals(Constants.ACTION_TYPE_VIEW_CLICK_HAND)) {
                    c = 'd';
                    break;
                }
                break;
            case 1801637470:
                if (actionType.equals(Constants.ACTION_TYPE_COPY_RECT_TEXT)) {
                    c = 'e';
                    break;
                }
                break;
            case 1809410086:
                if (actionType.equals(Constants.ACTION_TYPE_IF_STR_END)) {
                    c = 'f';
                    break;
                }
                break;
            case 2016976960:
                if (actionType.equals(Constants.ACTION_TYPE_IF_IMG_RECT)) {
                    c = 'g';
                    break;
                }
                break;
            case 2031607117:
                if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_RECT_TIMES)) {
                    c = 'h';
                    break;
                }
                break;
            case 2049763798:
                if (actionType.equals(Constants.ACTION_TYPE_TOOL_WX_XIAO)) {
                    c = 'i';
                    break;
                }
                break;
            case 2073083772:
                if (actionType.equals(Constants.ACTION_TYPE_TOOL_URL_SCHEME)) {
                    c = 'j';
                    break;
                }
                break;
            case 2138740411:
                if (actionType.equals(Constants.ACTION_TYPE_VIEW_FIND_ACTIVITY)) {
                    c = 'k';
                    break;
                }
                break;
            case 2144954836:
                if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_IMG_TIMES)) {
                    c = 'l';
                    break;
                }
                break;
        }
        switch (c) {
            case 0:
            case 1:
            case '3':
            case 'O':
            case 'U':
                showTextValue(context, "目标文字", actionBean, linearLayout7, textView21, textView22, imageView8, detailBean);
                return;
            case 2:
            case 17:
            case '&':
                showRect(context, "区域范围", actionBean, linearLayout4, textView11, textView12, textView13, textView14, detailBean);
                showBigger(actionBean, linearLayout22, textView56, textView57, imageView16, detailBean);
                showIfAction(actionBean, linearLayout16, textView38, textView39, textView40, detailBean);
                showElseAction(actionBean, linearLayout17, textView41, textView42, textView43, detailBean);
                return;
            case 3:
                showRepeat(context, "执行次数", actionBean, linearLayout2, textView7, textView8, imageView5, detailBean);
                showDoAction(actionBean, linearLayout26, textView66, textView67, imageView19, detailBean);
                return;
            case 4:
                showImg(actionBean, linearLayout15, imageView15, textView36, detailBean);
                showIfAction(actionBean, linearLayout16, textView38, textView39, textView40, detailBean);
                showElseAction(actionBean, linearLayout17, textView41, textView42, textView43, detailBean);
                return;
            case 5:
                showRange(context, "长度范围", actionBean, linearLayout10, textView27, textView28, imageView11, detailBean);
                showRect(context, "区域范围", actionBean, linearLayout4, textView11, textView12, textView13, textView14, detailBean);
                showIfAction(actionBean, linearLayout16, textView38, textView39, textView40, detailBean);
                showElseAction(actionBean, linearLayout17, textView41, textView42, textView43, detailBean);
                return;
            case 6:
            case '4':
            case ':':
            case 'C':
            case '\\':
            case ']':
                showPoint(context, "目标位置", actionBean, linearLayout, textView5, textView6, imageView4, detailBean);
                if (actionBean.getActionType().equals(Constants.ACTION_TYPE_RES_CLICK_TIMES)) {
                    showRepeat(context, "点击次数", actionBean, linearLayout2, textView7, textView8, imageView5, detailBean);
                    return;
                } else if (actionBean.getActionType().equals(Constants.ACTION_TYPE_RES_LONG_CLICK_TIMES)) {
                    showDuration(context, "长按时间", "秒", actionBean, linearLayout2, textView7, textView8, imageView5, detailBean);
                    return;
                } else if (actionBean.getActionType().equals(Constants.ACTION_TYPE_RES_LONG_CLICK_TIMES_MS)) {
                    showDuration(context, "长按时间", "毫秒", actionBean, linearLayout2, textView7, textView8, imageView5, detailBean);
                    return;
                } else {
                    return;
                }
            case 7:
                showTextList(context, "随机文本库", actionBean, linearLayout6, textView19, textView20, imageView7, detailBean);
                return;
            case '\b':
                showPointPercent(context, "目标百分比", actionBean, linearLayout, textView5, textView6, imageView4, detailBean);
                return;
            case '\t':
                showRange(context, "随机范围", actionBean, linearLayout10, textView27, textView28, imageView11, detailBean);
                return;
            case '\n':
            case '7':
                showTextValue(context, "控件ID", actionBean, linearLayout7, textView21, textView22, imageView8, detailBean);
                showIfAction(actionBean, linearLayout16, textView38, textView39, textView40, detailBean);
                showElseAction(actionBean, linearLayout17, textView41, textView42, textView43, detailBean);
                return;
            case 11:
            case ')':
            case '-':
            case 'G':
                showIfAction(actionBean, linearLayout16, textView38, textView39, textView40, detailBean);
                showElseAction(actionBean, linearLayout17, textView41, textView42, textView43, detailBean);
                return;
            case '\f':
                showDuration(context, "超时时间", "秒", actionBean, linearLayout2, textView7, textView8, imageView5, detailBean);
                showIfAction(actionBean, linearLayout16, textView38, textView39, textView40, detailBean);
                showElseAction(actionBean, linearLayout17, textView41, textView42, textView43, detailBean);
                return;
            case '\r':
                showTextValue(context, "目标文字", actionBean, linearLayout7, textView21, textView22, imageView8, detailBean);
                showPoint(context, "目标位置", actionBean, linearLayout, textView5, textView6, imageView4, detailBean);
                return;
            case 14:
                showGotoNum(context, true, "跳转到的动作", actionBean, linearLayout2, textView7, textView8, imageView5, detailBean);
                return;
            case 15:
                showRepeat(context, "遍历次数", actionBean, linearLayout2, textView7, textView8, imageView5, detailBean);
                showViewControlValue(context, "动作列表", actionBean, linearLayout7, textView21, textView22, imageView8, detailBean);
                return;
            case 16:
                showRemoteDevValue(context, "设备数量", actionBean, linearLayout7, textView21, textView22, imageView8, detailBean);
                showRemoteAuto(context, "执行动作", actionBean, linearLayout2, textView7, textView8, imageView5, detailBean);
                return;
            case 18:
                linearLayout6.setVisibility(View.VISIBLE);
                textView19.setText("移动路径：");
                textView20.setText(detailBean.getPointBeanList().size() + "个点");
                imageView7.setOnClickListener(new View.OnClickListener() {
                    public void onClick(View view) {
                        ClickUtils.onlyVibrate(MyApp.getContext());
                        EditDialogUtil.this.showPointList(context, false, "移动路径坐标", detailBean.getPointBeanList(), new OnPointChoseListener() {
                            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass64.AnonymousClass1 */

                            @Override // com.lmiot.xyclick.Util.EditDialogUtil.OnPointChoseListener
                            public void result(List<PointBean> list) {
                                EditDialogUtil.mDialogDetail.show();
                                TextView textView = textView20;
                                textView.setText(list.size() + "个点");
                                detailBean.setPointBeanList(list);
                                actionBean.setDetail(new Gson().toJson(detailBean));
                            }
                        }, true);
                    }
                });
                return;
            case 19:
            case ',':
            case 'K':
                linearLayout6.setVisibility(View.VISIBLE);
                textView19.setText("起止坐标️：");
                textView20.setText("从(" + detailBean.getPointBeanList().get(0).getX() + "," + detailBean.getPointBeanList().get(0).getY() + ")到（" + detailBean.getPointBeanList().get(1).getX() + "," + detailBean.getPointBeanList().get(1).getY() + ")");
                imageView7.setOnClickListener(new View.OnClickListener() {
                    /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass63 */

                    public void onClick(View view) {
                        ClickUtils.onlyVibrate(MyApp.getContext());
                        EditDialogUtil.this.showPointList(context, true, "起止坐标️", detailBean.getPointBeanList(), new OnPointChoseListener() {
                            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass63.AnonymousClass1 */

                            @Override // com.lmiot.xyclick.Util.EditDialogUtil.OnPointChoseListener
                            public void result(List<PointBean> list) {
                                EditDialogUtil.mDialogDetail.show();
                                if (list.size() >= 2) {
                                    TextView textView = textView20;
                                    textView.setText("从(" + list.get(0).getX() + "," + list.get(0).getY() + ")到（" + list.get(1).getX() + "," + list.get(1).getY() + ")");
                                    detailBean.setPointBeanList(list);
                                    actionBean.setDetail(new Gson().toJson(detailBean));
                                }
                            }
                        }, true);
                    }
                });
                return;
            case 20:
                showImg(actionBean, linearLayout15, imageView15, textView36, detailBean);
                showDuration(context, "超时时间", "秒", actionBean, linearLayout2, textView7, textView8, imageView5, detailBean);
                showIfAction(actionBean, linearLayout16, textView38, textView39, textView40, detailBean);
                showElseAction(actionBean, linearLayout17, textView41, textView42, textView43, detailBean);
                return;
            case 21:
                showTextList(context, "填充表单", actionBean, linearLayout6, textView19, textView20, imageView7, detailBean);
                return;
            case 22:
            case '5':
            case 'd':
                showTextValue(context, "控件ID", actionBean, linearLayout7, textView21, textView22, imageView8, detailBean);
                return;
            case 23:
            case '/':
                showTextValue(context, "检测文字", actionBean, linearLayout7, textView21, textView22, imageView8, detailBean);
                showRect(context, "区域范围", actionBean, linearLayout4, textView11, textView12, textView13, textView14, detailBean);
                showIfAction(actionBean, linearLayout16, textView38, textView39, textView40, detailBean);
                showElseAction(actionBean, linearLayout17, textView41, textView42, textView43, detailBean);
                return;
            case 24:
                showHttpUrlValue(context, "目标url", actionBean, linearLayout7, textView21, textView22, imageView8, detailBean);
                showPoint(context, "目标位置", actionBean, linearLayout, textView5, textView6, imageView4, detailBean);
                return;
            case 25:
                showTextValue(context, "目标文字", actionBean, linearLayout7, textView21, textView22, imageView8, detailBean);
                showRect(context, "区域范围", actionBean, linearLayout4, textView11, textView12, textView13, textView14, detailBean);
                return;
            case 26:
                showTextValue(context, "目标文字", actionBean, linearLayout7, textView21, textView22, imageView8, detailBean);
                showRect(context, "区域范围", actionBean, linearLayout4, textView11, textView12, textView13, textView14, detailBean);
                showOffset(actionBean, "点击偏移", linearLayout10, textView27, textView28, imageView11, detailBean);
                return;
            case 27:
                showPickNum(context, "设置图片相似度", actionBean, linearLayout2, textView7, textView8, imageView5, detailBean);
                showImg(actionBean, linearLayout15, imageView15, textView36, detailBean);
                showDuration(context, "延迟点击时间", "毫秒", actionBean, linearLayout2, textView7, textView8, imageView5, detailBean);
                return;
            case 28:
                showTextValue(context, "等待文字", actionBean, linearLayout7, textView21, textView22, imageView8, detailBean);
                showDuration(context, "超时时间", "秒", actionBean, linearLayout2, textView7, textView8, imageView5, detailBean);
                showIfAction(actionBean, linearLayout16, textView38, textView39, textView40, detailBean);
                showElseAction(actionBean, linearLayout17, textView41, textView42, textView43, detailBean);
                return;
            case 29:
                showPoint(context, "目标位置", actionBean, linearLayout, textView5, textView6, imageView4, detailBean);
                showRange(context, "输入范围", actionBean, linearLayout10, textView27, textView28, imageView11, detailBean);
                return;
            case 30:
                showRepeat(context, "执行次数", actionBean, linearLayout2, textView7, textView8, imageView5, detailBean);
                showDoActionList(actionBean, linearLayout26, textView66, textView67, imageView19, detailBean);
                return;
            case 31:
                linearLayout13.setVisibility(View.VISIBLE);
                textView31.setText("发送邮件：");
                textView32.setText("地址(" + detailBean.getText() + "),主题(" + detailBean.getTitle() + "),内容(" + detailBean.getMsg() + ")");
                imageView13.setOnClickListener(new View.OnClickListener() {
                    /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass67 */

                    public void onClick(View view) {
                        EditDialogUtil.this.sendEmail(MyApp.getContext(), detailBean.getText(), detailBean.getTitle(), detailBean.getMsg(), new OnEmailChangeListener() {
                            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass67.AnonymousClass1 */

                            @Override // com.lmiot.xyclick.Util.EditDialogUtil.OnEmailChangeListener
                            public void result(String str, String str2, String str3) {
                                TextView textView = textView32;
                                textView.setText("地址(" + str + "),主题(" + str2 + "),内容(" + str3 + ")");
                                detailBean.setText(str);
                                detailBean.setTitle(str2);
                                detailBean.setMsg(str3);
                                actionBean.setDetail(new Gson().toJson(detailBean));
                            }
                        });
                    }
                });
                return;
            case ' ':
                showRemoteDevValue(context, "设备数量", actionBean, linearLayout7, textView21, textView22, imageView8, detailBean);
                return;
            case '!':
                showDuration(context, "长按时间", "秒", actionBean, linearLayout2, textView7, textView8, imageView5, detailBean);
                showPointList(context, "同时按住", false, actionBean, linearLayout6, textView19, textView20, imageView7, detailBean);
                return;
            case '\"':
                showPoint(context, "目标位置", actionBean, linearLayout, textView5, textView6, imageView4, detailBean);
                return;
            case '#':
                showColor(actionBean, "xy", linearLayout25, textView62, textView63, textView64, textView65, detailBean);
                showIfAction(actionBean, linearLayout16, textView38, textView39, textView40, detailBean);
                showElseAction(actionBean, linearLayout17, textView41, textView42, textView43, detailBean);
                return;
            case '$':
                showLogicValue(context, "条件数量", actionBean, linearLayout7, textView21, textView22, imageView8, detailBean);
                showIfAction(actionBean, linearLayout16, textView38, textView39, textView40, detailBean);
                showElseAction(actionBean, linearLayout17, textView41, textView42, textView43, detailBean);
                return;
            case '%':
                showIfBean(actionBean, linearLayout28, textView70, textView71, imageView21, detailBean);
                showDoAction(actionBean, linearLayout26, textView66, textView67, imageView19, detailBean);
                return;
            case '\'':
                showThreeList(context, "包含账号", actionBean, linearLayout6, textView19, textView20, imageView7, detailBean);
                return;
            case '(':
                showImg(actionBean, linearLayout15, imageView15, textView36, detailBean);
                if (detailBean.getPointBeanList() != null) {
                    linearLayout6.setVisibility(View.VISIBLE);
                    textView19.setText("起止坐标️：");
                    textView20.setText("从(" + detailBean.getPointBeanList().get(0).getX() + "," + detailBean.getPointBeanList().get(0).getY() + ")到（" + detailBean.getPointBeanList().get(1).getX() + "," + detailBean.getPointBeanList().get(1).getY() + ")");
                    imageView7.setOnClickListener(new View.OnClickListener() {
                        /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass69 */

                        public void onClick(View view) {
                            ClickUtils.onlyVibrate(MyApp.getContext());
                            EditDialogUtil.this.showPointList(context, true, "起止坐标️", detailBean.getPointBeanList(), new OnPointChoseListener() {
                                /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass69.AnonymousClass1 */

                                @Override // com.lmiot.xyclick.Util.EditDialogUtil.OnPointChoseListener
                                public void result(List<PointBean> list) {
                                    EditDialogUtil.mDialogDetail.show();
                                    if (list.size() >= 2) {
                                        TextView textView = textView20;
                                        textView.setText("从(" + list.get(0).getX() + "," + list.get(0).getY() + ")到（" + list.get(1).getX() + "," + list.get(1).getY() + ")");
                                        detailBean.setPointBeanList(list);
                                        actionBean.setDetail(new Gson().toJson(detailBean));
                                    }
                                }
                            }, true);
                        }
                    });
                    return;
                }
                return;
            case '*':
                linearLayout11.setVisibility(View.VISIBLE);
                if (detailBean.isAppNew()) {
                    radioButton = radioButton4;
                    radioButton.setChecked(true);
                    radioButton2 = radioButton3;
                } else {
                    radioButton2 = radioButton3;
                    radioButton = radioButton4;
                    radioButton2.setChecked(true);
                }
                radioButton.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
                    /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass65 */

                    public void onCheckedChanged(CompoundButton compoundButton, boolean z) {
                        if (z) {
                            detailBean.setAppNew(true);
                            actionBean.setDetail(new Gson().toJson(detailBean));
                        }
                    }
                });
                radioButton2.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
                    /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass66 */

                    public void onCheckedChanged(CompoundButton compoundButton, boolean z) {
                        if (z) {
                            detailBean.setAppNew(false);
                            actionBean.setDetail(new Gson().toJson(detailBean));
                        }
                    }
                });
                return;
            case '+':
                showTextList(context, "顺序文本库", actionBean, linearLayout6, textView19, textView20, imageView7, detailBean);
                return;
            case '.':
                showRect(context, "区域范围", actionBean, linearLayout4, textView11, textView12, textView13, textView14, detailBean);
                return;
            case '0':
            case 'E':
                showTextValue(context, "目标文字", actionBean, linearLayout7, textView21, textView22, imageView8, detailBean);
                showRect(context, "区域范围", actionBean, linearLayout4, textView11, textView12, textView13, textView14, detailBean);
                return;
            case '1':
                showPointXY(context, "目标位置", actionBean, linearLayout, textView5, textView6, imageView4, detailBean);
                return;
            case '2':
                showDuration(context, "超时时间", "秒", actionBean, linearLayout2, textView7, textView8, imageView5, detailBean);
                showIfAction(actionBean, linearLayout16, textView38, textView39, textView40, detailBean);
                showElseAction(actionBean, linearLayout17, textView41, textView42, textView43, detailBean);
                return;
            case '6':
                showTextValue(context, "开头文字", actionBean, linearLayout7, textView21, textView22, imageView8, detailBean);
                showIfAction(actionBean, linearLayout16, textView38, textView39, textView40, detailBean);
                showElseAction(actionBean, linearLayout17, textView41, textView42, textView43, detailBean);
                return;
            case '8':
                showTextValue(context, "目标文字", actionBean, linearLayout7, textView21, textView22, imageView8, detailBean);
                showRect(context, "区域范围", actionBean, linearLayout4, textView11, textView12, textView13, textView14, detailBean);
                return;
            case '9':
                showDoActionList(actionBean, linearLayout26, textView66, textView67, imageView19, detailBean);
                return;
            case ';':
                showGotoNum(context, false, "跳转到的动作序号", actionBean, linearLayout2, textView7, textView8, imageView5, detailBean);
                return;
            case '<':
            case 'c':
                showTextValue(context, "检测文字", actionBean, linearLayout7, textView21, textView22, imageView8, detailBean);
                showIfAction(actionBean, linearLayout16, textView38, textView39, textView40, detailBean);
                showElseAction(actionBean, linearLayout17, textView41, textView42, textView43, detailBean);
                return;
            case '=':
                showDate(actionBean, linearLayout23, textView58, textView59, imageView17, detailBean);
                showIfAction(actionBean, linearLayout16, textView38, textView39, textView40, detailBean);
                showElseAction(actionBean, linearLayout17, textView41, textView42, textView43, detailBean);
                return;
            case '>':
                showIfBean(actionBean, linearLayout28, textView70, textView71, imageView21, detailBean);
                showDoAction(actionBean, linearLayout26, textView66, textView67, imageView19, detailBean);
                return;
            case '?':
                showTextValue(context, "拨打号码", actionBean, linearLayout7, textView21, textView22, imageView8, detailBean);
                return;
            case '@':
                showTextValue(context, "目标文字", actionBean, linearLayout7, textView21, textView22, imageView8, detailBean);
                showOffset(actionBean, "点击偏移", linearLayout10, textView27, textView28, imageView11, detailBean);
                return;
            case 'A':
                showTextValue(context, "打开网页", actionBean, linearLayout7, textView21, textView22, imageView8, detailBean);
                return;
            case 'B':
                showTextValue(context, "目标文字", actionBean, linearLayout7, textView21, textView22, imageView8, detailBean);
                showIntVallue(context, "编辑框编号", actionBean, linearLayout2, textView7, textView8, imageView5, detailBean);
                return;
            case 'D':
                showImg(actionBean, linearLayout15, imageView15, textView36, detailBean);
                showOffset(actionBean, "点击偏移", linearLayout10, textView27, textView28, imageView11, detailBean);
                return;
            case 'F':
                showTextValue(context, "控件ID", actionBean, linearLayout7, textView21, textView22, imageView8, detailBean);
                showDuration(context, "等待时间", "秒", actionBean, linearLayout2, textView7, textView8, imageView5, detailBean);
                return;
            case 'H':
                showTextValue(context, "播报内容", actionBean, linearLayout7, textView21, textView22, imageView8, detailBean);
                return;
            case 'I':
                showRepeat(context, "点击次数", actionBean, linearLayout2, textView7, textView8, imageView5, detailBean);
                showRect(context, "区域范围", actionBean, linearLayout4, textView11, textView12, textView13, textView14, detailBean);
                showImg(actionBean, linearLayout15, imageView15, textView36, detailBean);
                return;
            case 'J':
                showUserList(context, "包含账号", actionBean, linearLayout6, textView19, textView20, imageView7, detailBean);
                return;
            case 'L':
                showImg(actionBean, linearLayout15, imageView15, textView36, detailBean);
                showDuration(context, "长按时间", "秒", actionBean, linearLayout2, textView7, textView8, imageView5, detailBean);
                return;
            case 'M':
                showRepeat(context, "点击次数", actionBean, linearLayout2, textView7, textView8, imageView5, detailBean);
                showPointList(context, "同时点击", false, actionBean, linearLayout6, textView19, textView20, imageView7, detailBean);
                return;
            case 'N':
                showIntVallue(context, "手机振动", actionBean, linearLayout2, textView7, textView8, imageView5, detailBean);
                return;
            case 'P':
                showTextValue(context, "目标文字", actionBean, linearLayout7, textView21, textView22, imageView8, detailBean);
                showIntVallue(context, "点击第几个", actionBean, linearLayout2, textView7, textView8, imageView5, detailBean);
                return;
            case 'Q':
                showTextValue(context, "目标文字", actionBean, linearLayout7, textView21, textView22, imageView8, detailBean);
                showDuration(context, "超时时间", "秒", actionBean, linearLayout2, textView7, textView8, imageView5, detailBean);
                return;
            case 'R':
                showTextValue(context, "包含文字", actionBean, linearLayout7, textView21, textView22, imageView8, detailBean);
                showIfAction(actionBean, linearLayout16, textView38, textView39, textView40, detailBean);
                showElseAction(actionBean, linearLayout17, textView41, textView42, textView43, detailBean);
                return;
            case 'S':
                showActivityValue(context, "等待页面", actionBean, linearLayout7, textView21, textView22, imageView8, detailBean);
                showDuration(context, "超时时间", "秒", actionBean, linearLayout2, textView7, textView8, imageView5, detailBean);
                showIfAction(actionBean, linearLayout16, textView38, textView39, textView40, detailBean);
                showElseAction(actionBean, linearLayout17, textView41, textView42, textView43, detailBean);
                return;
            case 'T':
                showTextValue(context, "指定QQ", actionBean, linearLayout7, textView21, textView22, imageView8, detailBean);
                return;
            case 'V':
                showColor(actionBean, "full", linearLayout25, textView62, textView63, textView64, textView65, detailBean);
                showIfAction(actionBean, linearLayout16, textView38, textView39, textView40, detailBean);
                showElseAction(actionBean, linearLayout17, textView41, textView42, textView43, detailBean);
                return;
            case 'W':
                showIntVallue(context, "屏幕亮度", actionBean, linearLayout2, textView7, textView8, imageView5, detailBean);
                return;
            case 'X':
                showTextValue(context, "控件ID", actionBean, linearLayout7, textView21, textView22, imageView8, detailBean);
                showIfAction(actionBean, linearLayout16, textView38, textView39, textView40, detailBean);
                showElseAction(actionBean, linearLayout17, textView41, textView42, textView43, detailBean);
                return;
            case 'Y':
                showIntVallue(context, "音量大小", actionBean, linearLayout2, textView7, textView8, imageView5, detailBean);
                return;
            case 'Z':
                showPickNum(context, "设置图片相似度", actionBean, linearLayout2, textView7, textView8, imageView5, detailBean);
                showImg(actionBean, linearLayout15, imageView15, textView36, detailBean);
                return;
            case '[':
                showRepeat(context, "执行次数", actionBean, linearLayout2, textView7, textView8, imageView5, detailBean);
                showDoAction(actionBean, linearLayout26, textView66, textView67, imageView19, detailBean);
                showBreakAction(actionBean, linearLayout27, textView68, textView69, imageView20, detailBean);
                return;
            case '^':
                showRectColor(context, "区域范围", actionBean, linearLayout4, textView11, textView12, textView13, textView14, detailBean);
                showColorList(actionBean, "rect", linearLayout25, textView62, textView63, textView64, textView65, detailBean);
                showIfAction(actionBean, linearLayout16, textView38, textView39, textView40, detailBean);
                showElseAction(actionBean, linearLayout17, textView41, textView42, textView43, detailBean);
                return;
            case '_':
                showColor(actionBean, "rect", linearLayout25, textView62, textView63, textView64, textView65, detailBean);
                showIfAction(actionBean, linearLayout16, textView38, textView39, textView40, detailBean);
                showElseAction(actionBean, linearLayout17, textView41, textView42, textView43, detailBean);
                return;
            case '`':
                linearLayout14.setVisibility(View.VISIBLE);
                textView33.setText("发送信息：");
                textView34.setText("电话(" + detailBean.getText() + "),内容(" + detailBean.getMsg() + ")");
                imageView14.setOnClickListener(new View.OnClickListener() {
                    /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass68 */

                    public void onClick(View view) {
                        EditDialogUtil.this.sendMsg(MyApp.getContext(), detailBean.getText(), detailBean.getMsg(), new OnMsgChangeListener() {
                            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass68.AnonymousClass1 */

                            @Override // com.lmiot.xyclick.Util.EditDialogUtil.OnMsgChangeListener
                            public void result(String str, String str2) {
                                TextView textView = textView34;
                                textView.setText("电话(" + str + "),内容(" + str2 + ")");
                                detailBean.setText(str);
                                detailBean.setMsg(str2);
                                actionBean.setDetail(new Gson().toJson(detailBean));
                            }
                        });
                    }
                });
                return;
            case 'a':
                showImg(actionBean, linearLayout15, imageView15, textView36, detailBean);
                return;
            case 'b':
                showTextValue(context, "控件ID", actionBean, linearLayout7, textView21, textView22, imageView8, detailBean);
                showIntVallue(context, "点击第几个", actionBean, linearLayout2, textView7, textView8, imageView5, detailBean);
                return;
            case 'e':
                showRect(context, "选择范围", actionBean, linearLayout4, textView11, textView12, textView13, textView14, detailBean);
                return;
            case 'f':
                showTextValue(context, "结尾文字", actionBean, linearLayout7, textView21, textView22, imageView8, detailBean);
                showIfAction(actionBean, linearLayout16, textView38, textView39, textView40, detailBean);
                showElseAction(actionBean, linearLayout17, textView41, textView42, textView43, detailBean);
                return;
            case 'g':
                showImg(actionBean, linearLayout15, imageView15, textView36, detailBean);
                showRect(context, "区域范围", actionBean, linearLayout4, textView11, textView12, textView13, textView14, detailBean);
                showIfAction(actionBean, linearLayout16, textView38, textView39, textView40, detailBean);
                showElseAction(actionBean, linearLayout17, textView41, textView42, textView43, detailBean);
                return;
            case 'h':
                showRepeat(context, "点击次数", actionBean, linearLayout2, textView7, textView8, imageView5, detailBean);
                showRect(context, "点击区域", actionBean, linearLayout4, textView11, textView12, textView13, textView14, detailBean);
                return;
            case 'i':
                showTextValue(context, "微信小程序ID", actionBean, linearLayout7, textView21, textView22, imageView8, detailBean);
                return;
            case 'j':
                showTextValue(context, "打开Url Scheme", actionBean, linearLayout7, textView21, textView22, imageView8, detailBean);
                return;
            case 'k':
                showActivityValue(context, "等待页面", actionBean, linearLayout7, textView21, textView22, imageView8, detailBean);
                showIfAction(actionBean, linearLayout16, textView38, textView39, textView40, detailBean);
                showElseAction(actionBean, linearLayout17, textView41, textView42, textView43, detailBean);
                return;
            case 'l':
                showRepeat(context, "点击次数", actionBean, linearLayout2, textView7, textView8, imageView5, detailBean);
                showImg(actionBean, linearLayout15, imageView15, textView36, detailBean);
                return;
            default:
                return;
        }
    }

    private void showViewControlValue(Context context, String str, final ActionBean actionBean, LinearLayout linearLayout, TextView textView, final TextView textView2, ImageView imageView, final DetailBean detailBean) {
        linearLayout.setVisibility(View.VISIBLE);
        textView.setText(str + "：");
        textView2.setText(detailBean.getActionBeanList().size() + "个");
        imageView.setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass70 */

            public void onClick(View view) {
                ClickUtils.onlyVibrate(MyApp.getContext());
                EditDialogUtil.this.showListItemList(MyApp.getContext(), false, detailBean.getActionBeanList(), new OnViewItemListener() {
                    /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass70.AnonymousClass1 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.OnViewItemListener
                    public void result(List<ActionBean> list) {
                        TextView textView = textView2;
                        textView.setText(list.size() + "个");
                        if (list.size() == 0) {
                            ToastUtil.warning("您还没选择条件");
                            return;
                        }
                        detailBean.setActionBeanList(list);
                        actionBean.setDetail(new Gson().toJson(detailBean));
                    }
                });
            }
        });
    }

    public void showListItemList(final Context context, final boolean z, List<ActionBean> list, final OnViewItemListener onViewItemListener) {
        Dialog dialog = this.mDialogListItem;
        if (dialog != null && dialog.isShowing()) {
            this.mDialogListItem.dismiss();
        }
        this.mDialogListItem = LayoutDialogUtil.createSysDailog(context, R.layout.dialog_chose_viewlist);
        this.mActionList = list;
        if (list == null) {
            this.mActionList = new ArrayList();
        }
        this.mDialogListItem.setCancelable(true);
        ListView listView = (ListView) this.mDialogListItem.findViewById(R.id.id_listivew);
        TextView textView = (TextView) this.mDialogListItem.findViewById(R.id.id_empty);
        TextView textView2 = (TextView) this.mDialogListItem.findViewById(R.id.tv_sure);
        TextView textView3 = (TextView) this.mDialogListItem.findViewById(R.id.bt1);
        TextView textView4 = (TextView) this.mDialogListItem.findViewById(R.id.bt2);
        TextView textView5 = (TextView) this.mDialogListItem.findViewById(R.id.tv_hide);
        if (this.mActionList.size() == 0) {
            textView.setVisibility(View.VISIBLE);
            listView.setVisibility(View.GONE);
        } else {
            textView.setVisibility(View.GONE);
            listView.setVisibility(View.VISIBLE);
        }
        List<ActionBean> list2 = this.mActionList;
        if (list2 != null) {
            if (list2.size() > 5) {
                listView.setLayoutParams(new LinearLayout.LayoutParams(-1, DpUtil.dip2px(MyApp.getContext(), 400.0f)));
            } else {
                listView.setLayoutParams(new LinearLayout.LayoutParams(-1, -2));
            }
        }
        listView.setAdapter((ListAdapter) new ViewItemAdapter());
        textView5.setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass71 */

            public void onClick(View view) {
                EditDialogUtil.this.mDialogListItem.dismiss();
                ClickUtils.onlyVibrate(MyApp.getContext());
                EditDialogUtil.this.sureDialog(MyApp.getContext(), "温馨提示", "短按一下音量-可以再次编辑窗口", 0, new setOnSureListener() {
                    /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass71.AnonymousClass1 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        MyApp.onDialogShowClickListener = new MyApp.OnDialogShowClickListener() {
                            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass71.AnonymousClass1.AnonymousClass1 */

                            @Override // com.lmiot.xyclick.App.MyApp.OnDialogShowClickListener
                            public void result(boolean z) {
                                MyApp.onDialogShowClickListener = null;
                                EditDialogUtil.this.mDialogListItem.show();
                            }
                        };
                    }
                }, true);
            }
        });
        textView2.setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass72 */

            public void onClick(View view) {
                EditDialogUtil.this.mDialogListItem.dismiss();
                if (onViewItemListener != null) {
                    onViewItemListener.result(EditDialogUtil.this.mActionList);
                }
            }
        });
        textView3.setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass73 */

            public void onClick(View view) {
                EditDialogUtil.this.mDialogListItem.dismiss();
                if (!z) {
                    ClickUtils.onlyVibrate(MyApp.getContext());
                    ToastUtil.warning("子控件不支持再编辑！");
                    return;
                }
                EditDialogUtil.this.choseViewAction(MyApp.getContext(), new OnViewAcionTypeListener() {
                    /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass73.AnonymousClass1 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.OnViewAcionTypeListener
                    public void result(final NoteInfoViewSDK.NowActioType nowActioType, final Dialog dialog) {
                        NoteInfoViewSDK.getInstance().choseListViewAction(nowActioType, new NoteInfoViewSDK.OnChoseViewListener() {
                            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass73.AnonymousClass1.AnonymousClass1 */

                            @Override // com.xiaoyi.intentsdklibrary.SDK.FloatView.NoteInfoViewSDK.OnChoseViewListener
                            public void result(ViewBean viewBean, String str) {
                                if (viewBean == null) {
                                    ToastUtil.warning("暂无合适的子控件，请重新选择！");
                                    if (dialog != null) {
                                        dialog.show();
                                        return;
                                    }
                                    return;
                                }
                                ToastUtil.success("选择成功！");
                                ActionBean actionBean = new ActionBean();
                                DetailBean detailBean = new DetailBean();
                                detailBean.setViewBean(viewBean);
                                actionBean.setDetail(new Gson().toJson(detailBean));
                                //lkx_debug_todo
                                int i = nowActioType.ordinal();
                                if (i == 1) {
                                    actionBean.setActionType(Constants.ACTION_TYPE_VIEW_CLICK_INSIGN_LISTVIEW);
                                    actionBean.setActionName("点击子控件");
                                } else if (i == 2) {
                                    actionBean.setActionType(Constants.ACTION_TYPE_VIEW_LONG_CLICK_INSIGN_LISTVIEW);
                                    actionBean.setActionName("长按子控件");
                                } else if (i == 3) {
                                    actionBean.setActionType(Constants.ACTION_TYPE_VIEW_INPUT_INSIGN_LISTVIEW);
                                    actionBean.setActionName("子控件输入");
                                } else if (i == 4) {
                                    actionBean.setActionType(Constants.ACTION_TYPE_VIEW_CHECK_INSIGN_LISTVIEW);
                                    actionBean.setActionName("子控件打开");
                                } else if (i == 5) {
                                    actionBean.setActionType(Constants.ACTION_TYPE_VIEW_UNCHECK_INSIGN_LISTVIEW);
                                    actionBean.setActionName("子控件关闭");
                                }
                                EditDialogUtil.this.mActionList.add(actionBean);
                                EditDialogUtil.this.showListItemList(context, z, EditDialogUtil.this.mActionList, onViewItemListener);
                            }
                        });
                    }
                });
            }
        });
        textView4.setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass74 */

            public void onClick(View view) {
                EditDialogUtil.this.mDialogListItem.dismiss();
                ChoseActionSecondUtil.getInstance().choseSecondActon("请选择一个动作", new ChoseActionSecondUtil.OnChoseActionListener() {

                    @Override // com.lmiot.xyclick.Method.ChoseActionSecondUtil.OnChoseActionListener
                    public void result(ActionBean actionBean) {
                        EditDialogUtil.this.mActionList.add(actionBean);
                        EditDialogUtil.this.showListItemList(context, z, EditDialogUtil.this.mActionList, onViewItemListener);
                    }
                });
            }
        });
    }

//    /* renamed from: com.lmiot.xyclick.Util.EditDialogUtil$130  reason: invalid class name */
//    static /* synthetic */ class AnonymousClass130 {
//        static final /* synthetic */ int[] $SwitchMap$com$xiaoyi$intentsdklibrary$SDK$FloatView$NoteInfoViewSDK$NowActioType;
//
//        /* JADX WARNING: Can't wrap try/catch for region: R(12:0|1|2|3|4|5|6|7|8|9|10|12) */
//        /* JADX WARNING: Code restructure failed: missing block: B:13:?, code lost:
//            return;
//         */
//        /* JADX WARNING: Failed to process nested try/catch */
//        /* JADX WARNING: Missing exception handler attribute for start block: B:3:0x0012 */
//        /* JADX WARNING: Missing exception handler attribute for start block: B:5:0x001d */
//        /* JADX WARNING: Missing exception handler attribute for start block: B:7:0x0028 */
//        /* JADX WARNING: Missing exception handler attribute for start block: B:9:0x0033 */
//        static {
//            /*
//                com.xiaoyi.intentsdklibrary.SDK.FloatView.NoteInfoViewSDK$NowActioType[] r0 = com.xiaoyi.intentsdklibrary.SDK.FloatView.NoteInfoViewSDK.NowActioType.values()
//                int r0 = r0.length
//                int[] r0 = new int[r0]
//                com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass130.$SwitchMap$com$xiaoyi$intentsdklibrary$SDK$FloatView$NoteInfoViewSDK$NowActioType = r0
//                com.xiaoyi.intentsdklibrary.SDK.FloatView.NoteInfoViewSDK$NowActioType r1 = com.xiaoyi.intentsdklibrary.SDK.FloatView.NoteInfoViewSDK.NowActioType.CLICK     // Catch:{ NoSuchFieldError -> 0x0012 }
//                int r1 = r1.ordinal()     // Catch:{ NoSuchFieldError -> 0x0012 }
//                r2 = 1
//                r0[r1] = r2     // Catch:{ NoSuchFieldError -> 0x0012 }
//            L_0x0012:
//                int[] r0 = com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass130.$SwitchMap$com$xiaoyi$intentsdklibrary$SDK$FloatView$NoteInfoViewSDK$NowActioType     // Catch:{ NoSuchFieldError -> 0x001d }
//                com.xiaoyi.intentsdklibrary.SDK.FloatView.NoteInfoViewSDK$NowActioType r1 = com.xiaoyi.intentsdklibrary.SDK.FloatView.NoteInfoViewSDK.NowActioType.LONG_CLICK     // Catch:{ NoSuchFieldError -> 0x001d }
//                int r1 = r1.ordinal()     // Catch:{ NoSuchFieldError -> 0x001d }
//                r2 = 2
//                r0[r1] = r2     // Catch:{ NoSuchFieldError -> 0x001d }
//            L_0x001d:
//                int[] r0 = com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass130.$SwitchMap$com$xiaoyi$intentsdklibrary$SDK$FloatView$NoteInfoViewSDK$NowActioType     // Catch:{ NoSuchFieldError -> 0x0028 }
//                com.xiaoyi.intentsdklibrary.SDK.FloatView.NoteInfoViewSDK$NowActioType r1 = com.xiaoyi.intentsdklibrary.SDK.FloatView.NoteInfoViewSDK.NowActioType.INPUT     // Catch:{ NoSuchFieldError -> 0x0028 }
//                int r1 = r1.ordinal()     // Catch:{ NoSuchFieldError -> 0x0028 }
//                r2 = 3
//                r0[r1] = r2     // Catch:{ NoSuchFieldError -> 0x0028 }
//            L_0x0028:
//                int[] r0 = com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass130.$SwitchMap$com$xiaoyi$intentsdklibrary$SDK$FloatView$NoteInfoViewSDK$NowActioType     // Catch:{ NoSuchFieldError -> 0x0033 }
//                com.xiaoyi.intentsdklibrary.SDK.FloatView.NoteInfoViewSDK$NowActioType r1 = com.xiaoyi.intentsdklibrary.SDK.FloatView.NoteInfoViewSDK.NowActioType.CHECK     // Catch:{ NoSuchFieldError -> 0x0033 }
//                int r1 = r1.ordinal()     // Catch:{ NoSuchFieldError -> 0x0033 }
//                r2 = 4
//                r0[r1] = r2     // Catch:{ NoSuchFieldError -> 0x0033 }
//            L_0x0033:
//                int[] r0 = com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass130.$SwitchMap$com$xiaoyi$intentsdklibrary$SDK$FloatView$NoteInfoViewSDK$NowActioType     // Catch:{ NoSuchFieldError -> 0x003e }
//                com.xiaoyi.intentsdklibrary.SDK.FloatView.NoteInfoViewSDK$NowActioType r1 = com.xiaoyi.intentsdklibrary.SDK.FloatView.NoteInfoViewSDK.NowActioType.UNCHECK     // Catch:{ NoSuchFieldError -> 0x003e }
//                int r1 = r1.ordinal()     // Catch:{ NoSuchFieldError -> 0x003e }
//                r2 = 5
//                r0[r1] = r2     // Catch:{ NoSuchFieldError -> 0x003e }
//            L_0x003e:
//                return
//            */
//            throw new UnsupportedOperationException("Method not decompiled: com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass130.<clinit>():void");
//        }
//    }

    /* access modifiers changed from: private */
    public class ViewItemAdapter extends BaseAdapter {
        public Object getItem(int i) {
            return null;
        }

        public long getItemId(int i) {
            return 0;
        }

        private ViewItemAdapter() {
        }

        public int getCount() {
            return EditDialogUtil.this.mActionList.size();
        }

        public View getView(final int i, View view, ViewGroup viewGroup) {
            View inflate = View.inflate(MyApp.getContext(), R.layout.item_view_item, null);
            ((TextView) inflate.findViewById(R.id.id_name)).setText(((ActionBean) EditDialogUtil.this.mActionList.get(i)).getActionName());
            ((ImageView) inflate.findViewById(R.id.id_del)).setOnClickListener(new View.OnClickListener() {
                public void onClick(View view) {
                    ClickUtils.onlyVibrate(MyApp.getContext());
                    EditDialogUtil.this.mActionList.remove(i);
                    ViewItemAdapter.this.notifyDataSetChanged();
                }
            });
            return inflate;
        }
    }

    public void choseViewAction(Context context, final OnViewAcionTypeListener onViewAcionTypeListener) {
        Dialog dialog = this.mDialog;
        if (dialog != null) {
            if (dialog.isShowing()) {
                this.mDialog.dismiss();
            }
            this.mDialog.dismiss();
        }
        Dialog createSysDailog = LayoutDialogUtil.createSysDailog(context, R.layout.dialog_chose_view_listview_item);
        this.mDialog = createSysDailog;
        ((LinearLayout) createSysDailog.findViewById(R.id.id_view_click_layout)).setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                EditDialogUtil.this.mDialog.dismiss();
                if (onViewAcionTypeListener != null) {
                    onViewAcionTypeListener.result(NoteInfoViewSDK.NowActioType.CLICK, EditDialogUtil.this.mDialog);
                }
            }
        });
        ((LinearLayout) this.mDialog.findViewById(R.id.id_view_longclick_layout)).setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                EditDialogUtil.this.mDialog.dismiss();
                if (onViewAcionTypeListener != null) {
                    onViewAcionTypeListener.result(NoteInfoViewSDK.NowActioType.LONG_CLICK, EditDialogUtil.this.mDialog);
                }
            }
        });
        ((LinearLayout) this.mDialog.findViewById(R.id.id_view_input_layout)).setOnClickListener(new View.OnClickListener() {

            public void onClick(View view) {
                EditDialogUtil.this.mDialog.dismiss();
                if (onViewAcionTypeListener != null) {
                    onViewAcionTypeListener.result(NoteInfoViewSDK.NowActioType.INPUT, EditDialogUtil.this.mDialog);
                }
            }
        });
        ((LinearLayout) this.mDialog.findViewById(R.id.id_view_checked_layout)).setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                EditDialogUtil.this.mDialog.dismiss();
                if (onViewAcionTypeListener != null) {
                    onViewAcionTypeListener.result(NoteInfoViewSDK.NowActioType.CHECK, EditDialogUtil.this.mDialog);
                }
            }
        });
        ((LinearLayout) this.mDialog.findViewById(R.id.id_view_unchecked_layout)).setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                EditDialogUtil.this.mDialog.dismiss();
                if (onViewAcionTypeListener != null) {
                    onViewAcionTypeListener.result(NoteInfoViewSDK.NowActioType.UNCHECK, EditDialogUtil.this.mDialog);
                }
            }
        });
        ((TextView) this.mDialog.findViewById(R.id.id_save)).setOnClickListener(new View.OnClickListener() {

            public void onClick(View view) {
                EditDialogUtil.this.mDialog.dismiss();
            }
        });
    }

    private void showIfBean(final ActionBean actionBean, LinearLayout linearLayout, TextView textView, final TextView textView2, ImageView imageView, final DetailBean detailBean) {
        linearLayout.setVisibility(View.VISIBLE);
        textView.setText("满足条件：");
        textView2.setText(detailBean.getIfBean().getIfName());
        imageView.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                ClickUtils.onlyVibrate(MyApp.getContext());
                EditDialogUtil.mDialogDetail.hide();
                ChoseActionIFUtil.getInstance().showChoseDialog("选择满足执行的条件", new ChoseActionIFUtil.OnChoseIfBeanListener() {

                    @Override
                    public void result(IfBean ifBean) {
                        detailBean.setIfBean(ifBean);
                        textView2.setText(detailBean.getIfBean().getIfName());
                        actionBean.setDetail(new Gson().toJson(detailBean));
                        EditDialogUtil.mDialogDetail.show();
                    }
                });
            }
        });
    }

    private void showBreakAction(final ActionBean actionBean, LinearLayout linearLayout, TextView textView, final TextView textView2, ImageView imageView, final DetailBean detailBean) {
        linearLayout.setVisibility(View.VISIBLE);
        textView.setText("中断条件：");
        textView2.setText(detailBean.getBreakIfBean().getIfName());
        imageView.setOnClickListener(new View.OnClickListener() {

            public void onClick(View view) {
                ClickUtils.onlyVibrate(MyApp.getContext());
                EditDialogUtil.mDialogDetail.hide();
                ChoseActionIFUtil.getInstance().showChoseDialog("选择中断的条件", new ChoseActionIFUtil.OnChoseIfBeanListener() {

                    @Override // com.lmiot.xyclick.Method.ChoseActionIFUtil.OnChoseIfBeanListener
                    public void result(IfBean ifBean) {
                        detailBean.setBreakIfBean(ifBean);
                        textView2.setText(detailBean.getBreakIfBean().getIfName());
                        actionBean.setDetail(new Gson().toJson(detailBean));
                        EditDialogUtil.mDialogDetail.show();
                    }
                });
            }
        });
    }

    private void showDoActionList(final ActionBean actionBean, LinearLayout linearLayout, TextView textView, final TextView textView2, ImageView imageView, final DetailBean detailBean) {
        linearLayout.setVisibility(View.VISIBLE);
        textView.setText("执行动作：");
        textView2.setText(detailBean.getActionBeanList().size() + "个");
        imageView.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                ClickUtils.onlyVibrate(MyApp.getContext());
                EditDialogUtil.mDialogDetail.hide();
                EditDialogUtil.this.showForPlusList(MyApp.getContext(), detailBean.getActionBeanList(), new OnActionListListener() {
                    @Override
                    public void result(List<ActionBean> list) {
                        detailBean.setActionBeanList(list);
                        TextView textView = textView2;
                        textView.setText(detailBean.getActionBeanList().size() + "个");
                        actionBean.setDetail(new Gson().toJson(detailBean));
                        EditDialogUtil.mDialogDetail.show();
                    }
                });
            }
        });
    }

    private void showDoAction(final ActionBean actionBean, LinearLayout linearLayout, TextView textView, final TextView textView2, ImageView imageView, final DetailBean detailBean) {
        linearLayout.setVisibility(View.VISIBLE);
        textView.setText("执行动作：");
        textView2.setText(detailBean.getDoActonBean().getActionName());
        imageView.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                ClickUtils.onlyVibrate(MyApp.getContext());
                EditDialogUtil.mDialogDetail.hide();
                ChoseActionSecondUtil.getInstance().choseSecondActon("选择要执行的动作", new ChoseActionSecondUtil.OnChoseActionListener() {
                    @Override
                    public void result(ActionBean actionBean) {
                        detailBean.setDoActonBean(actionBean);
                        textView2.setText(detailBean.getDoActonBean().getActionName());
                        actionBean.setDetail(new Gson().toJson(detailBean));
                        EditDialogUtil.mDialogDetail.show();
                    }
                });
            }
        });
    }

    private void showColorList(final ActionBean actionBean, String str, LinearLayout linearLayout, TextView textView, final TextView textView2, TextView textView3, TextView textView4, final DetailBean detailBean) {
        linearLayout.setVisibility(View.VISIBLE);
        textView.setText("颜色️：");
        textView2.setText(detailBean.getIfBeanColor().getName());
        textView4.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                EditDialogUtil.mDialogDetail.hide();
                ClickUtils.onlyVibrate(MyApp.getContext());
                EditDialogUtil.this.choseColorList(MyApp.getContext(), detailBean.getIfBeanColor().getRect(), detailBean.getIfBeanColor().getColorList(), new OnColorListener() {
                    @Override
                    public void result(IfBeanColor ifBeanColor) {
                        detailBean.setIfBeanColor(ifBeanColor);
                        textView2.setText(detailBean.getIfBeanColor().getName());
                        actionBean.setDetail(new Gson().toJson(detailBean));
                        EditDialogUtil.mDialogDetail.show();
                    }
                }, true);
            }
        });
        textView3.setVisibility(View.GONE);
    }

    private void showColor(final ActionBean actionBean, final String str, LinearLayout linearLayout, TextView textView, final TextView textView2, TextView textView3, TextView textView4, final DetailBean detailBean) {
        linearLayout.setVisibility(View.VISIBLE);
        textView.setText("颜色️：");
        textView2.setText(detailBean.getIfBeanColor().getName());
        textView4.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                EditDialogUtil.mDialogDetail.hide();
                ClickUtils.onlyVibrate(MyApp.getContext());
                EditDialogUtil editDialogUtil = EditDialogUtil.this;
                Context context = MyApp.getContext();
                String locationX = detailBean.getIfBeanColor().getLocationX();
                String str2 = "0";
                int parseInt = MathUtils.parseInt(locationX == null ? str2 : detailBean.getIfBeanColor().getLocationX());
                if (detailBean.getIfBeanColor().getLocationY() != null) {
                    str2 = detailBean.getIfBeanColor().getLocationY();
                }
                editDialogUtil.choseColor(context, str, "请确认位置和颜色", parseInt, MathUtils.parseInt(str2), detailBean.getIfBeanColor().getRect(), detailBean.getIfBeanColor().getColor(), new OnColorListener() {
                    @Override
                    public void result(IfBeanColor ifBeanColor) {
                        detailBean.setIfBeanColor(ifBeanColor);
                        textView2.setText(detailBean.getIfBeanColor().getName());
                        actionBean.setDetail(new Gson().toJson(detailBean));
                        EditDialogUtil.mDialogDetail.show();
                    }
                }, true);
            }
        });
        textView3.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                EditDialogUtil.mDialogDetail.hide();
                ClickUtils.onlyVibrate(MyApp.getContext());
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.拖动以下蓝色图标到要取颜色的地方;\n\n2.然后长按该图标即可选择目标颜色;", R.drawable.location, new setOnSureListener() {
                    @Override
                    public void sureClick(boolean z) {
                        FloatManager.show(InitFloatBean.FloatType.action);
                        MyApp.mOnActionViewLongClickListener = new MyApp.OnActionViewLongClickListener() {
                            @Override
                            public void result(final int i, final int i2) {
                                MyApp.mOnActionViewLongClickListener = null;
                                FloatManager.hide(InitFloatBean.FloatType.action);
                                YYScreenCutSDK.getInstance().cutFull(MyApp.getContext(), new YYScreenCutSDK.OnCutListener() {
                                    @Override
                                    public void result(boolean z, Bitmap bitmap) {
                                        String colorByXY = YYScreenCutSDK.getColorByXY(bitmap, i, i2, true);
                                        FloatManager.show(InitFloatBean.FloatType.action);
                                        EditDialogUtil.getInstance().choseColor(MyApp.getContext(), str, "请确认位置和颜色", i, i2, detailBean.getIfBeanColor().getRect(), colorByXY, new OnColorListener() {
                                            @Override
                                            public void result(IfBeanColor ifBeanColor) {
                                                detailBean.setIfBeanColor(ifBeanColor);
                                                textView2.setText(detailBean.getIfBeanColor().getName());
                                                actionBean.setDetail(new Gson().toJson(detailBean));
                                                EditDialogUtil.mDialogDetail.show();
                                            }
                                        }, true);
                                    }
                                });
                            }
                        };
                    }
                }, true);
            }
        });
    }
    
    private void showBigger(final ActionBean r3, LinearLayout r4, TextView r5, final TextView r6, ImageView r7, final DetailBean r8) {
        /*
        // Method dump skipped, instructions count: 192
        */
        /**
         * lkx_debug_todo
         */
        throw new UnsupportedOperationException("Method not decompiled: com.lmiot.xyclick.Util.EditDialogUtil.showBigger(com.lmiot.xyclick.Bean.SQL.ActionBean, android.widget.LinearLayout, android.widget.TextView, android.widget.TextView, android.widget.ImageView, com.lmiot.xyclick.ActionDetailBean.DetailBean):void");
    }

    private void showDate(final ActionBean actionBean, LinearLayout linearLayout, TextView textView, final TextView textView2, ImageView imageView, final DetailBean detailBean) {
        linearLayout.setVisibility(View.VISIBLE);
        textView.setText("时间️：");
        textView2.setText(detailBean.getStartTime() + "～" + detailBean.getEndTime());
        imageView.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                EditDialogUtil.mDialogDetail.hide();
                ClickUtils.onlyVibrate(MyApp.getContext());
                EditDialogUtil.this.choseTimer(MyApp.getContext(), "选择判断的时间范围", new OnTimerListener() {
                    @Override
                    public void result(String str, String str2) {
                        detailBean.setStartTime(str);
                        detailBean.setEndTime(str2);
                        TextView textView = textView2;
                        textView.setText(detailBean.getStartTime() + "～" + detailBean.getEndTime());
                        actionBean.setDetail(new Gson().toJson(detailBean));
                        EditDialogUtil.mDialogDetail.show();
                    }
                }, true);
            }
        });
    }

    private void showRemoteAuto(Context context, String str, final ActionBean actionBean, LinearLayout linearLayout, TextView textView, final TextView textView2, ImageView imageView, final DetailBean detailBean) {
        linearLayout.setVisibility(View.VISIBLE);
        textView.setText(str + "：");
        AutoBean searchByID = AutoBeanSqlUtil.getInstance().searchByID(detailBean.getRemoteAutoID());
        if (searchByID == null) {
            textView2.setText("");
        } else {
            textView2.setText(searchByID.getAutoName());
        }
        imageView.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                ClickUtils.onlyVibrate(MyApp.getContext());
                EditDialogUtil.this.choseRemoteAuto(MyApp.getContext(), detailBean.getRemoteAutoID(), new OnBasicListener() {

                    @Override
                    public void result(boolean z, String str) {
                        textView2.setText(AutoBeanSqlUtil.getInstance().searchByID(detailBean.getRemoteAutoID()).getAutoName());
                        detailBean.setRemoteAutoID(str);
                        actionBean.setDetail(new Gson().toJson(detailBean));
                    }
                }, true);
            }
        });
    }

    private void showRemoteDevValue(Context context, String str, final ActionBean actionBean, LinearLayout linearLayout, TextView textView, final TextView textView2, ImageView imageView, final DetailBean detailBean) {
        linearLayout.setVisibility(View.VISIBLE);
        textView.setText(str + "：");
        textView2.setText(detailBean.getRemoteDevList().size() + "个");
        imageView.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                ClickUtils.onlyVibrate(MyApp.getContext());
                EditDialogUtil.this.choseRemoteDev(MyApp.getContext(), detailBean.getRemoteDevList(), new ShareEditMethod() {
                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.ShareEditMethod
                    public void edit(Set<String> set) {
                        if (set.size() == 0) {
                            ToastUtil.warning("您还没选择条件");
                            return;
                        }
                        detailBean.setRemoteDevList(set);
                        TextView textView = textView2;
                        textView.setText(set.size() + "个");
                        actionBean.setDetail(new Gson().toJson(detailBean));
                    }
                }, true);
            }
        });
    }

    private void showActivityValue(final Context context, final String str, final ActionBean actionBean, LinearLayout linearLayout, TextView textView, final TextView textView2, ImageView imageView, final DetailBean detailBean) {
        linearLayout.setVisibility(View.VISIBLE);
        textView.setText(str + "：");
        textView2.setText(detailBean.getActivityName());
        imageView.setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass92 */

            public void onClick(View view) {
                ClickUtils.onlyVibrate(MyApp.getContext());
                EditDialogUtil.this.edit(context, 1, str, "请输入", detailBean.getActivityName(), new EditMethod() {
                    /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass92.AnonymousClass1 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                    public void edit(String str) {
                        textView2.setText(str);
                        detailBean.setActivityName(str);
                        actionBean.setDetail(new Gson().toJson(detailBean));
                    }
                }, true);
            }
        });
    }

    private void showElseAction(final ActionBean actionBean, LinearLayout linearLayout, TextView textView, final TextView textView2, TextView textView3, final DetailBean detailBean) {
        linearLayout.setVisibility(View.VISIBLE);
        textView.setText("不满足则执行：");
        textView2.setText(detailBean.getElseActionBean().getActionName());
        textView3.setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass93 */

            public void onClick(View view) {
                ClickUtils.onlyVibrate(MyApp.getContext());
                EditDialogUtil.mDialogDetail.hide();
                ChoseActionSecondUtil.getInstance().choseSecondActon("选择条件不满足后要执行的动作", new ChoseActionSecondUtil.OnChoseActionListener() {
                    /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass93.AnonymousClass1 */

                    @Override // com.lmiot.xyclick.Method.ChoseActionSecondUtil.OnChoseActionListener
                    public void result(ActionBean actionBean) {
                        detailBean.setElseActionBean(actionBean);
                        textView2.setText(actionBean.getActionName());
                        actionBean.setDetail(new Gson().toJson(detailBean));
                        EditDialogUtil.mDialogDetail.show();
                    }
                });
            }
        });
    }

    private void showIfAction(final ActionBean actionBean, LinearLayout linearLayout, TextView textView, final TextView textView2, TextView textView3, final DetailBean detailBean) {
        linearLayout.setVisibility(View.VISIBLE);
        textView.setText("满足则执行：");
        textView2.setText(detailBean.getIFActionBean().getActionName());
        textView3.setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass94 */

            public void onClick(View view) {
                ClickUtils.onlyVibrate(MyApp.getContext());
                EditDialogUtil.mDialogDetail.hide();
                ChoseActionSecondUtil.getInstance().choseSecondActon("选择条件满足后要执行的动作", new ChoseActionSecondUtil.OnChoseActionListener() {
                    /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass94.AnonymousClass1 */

                    @Override // com.lmiot.xyclick.Method.ChoseActionSecondUtil.OnChoseActionListener
                    public void result(ActionBean actionBean) {
                        detailBean.setIFActionBean(actionBean);
                        textView2.setText(actionBean.getActionName());
                        actionBean.setDetail(new Gson().toJson(detailBean));
                        EditDialogUtil.mDialogDetail.show();
                    }
                });
            }
        });
    }

    @SuppressLint("SetTextI18n")
    private void showPickNum(final Context context, final String str, final ActionBean actionBean, LinearLayout linearLayout, TextView textView, final TextView textView2, ImageView imageView, final DetailBean detailBean) {
        linearLayout.setVisibility(View.VISIBLE);
        textView.setText(str + "：");
        textView2.setText(detailBean.getRepeat() + "%");
        imageView.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                ClickUtils.onlyVibrate(MyApp.getContext());
                EditDialogUtil editDialogUtil = EditDialogUtil.this;
                editDialogUtil.edit(context, 8194, str, "请输入", detailBean.getRepeat() + "", new EditMethod() {
                    @Override
                    public void edit(String str) {
                        TextView textView = textView2;
                        textView.setText(str + "%");
                        detailBean.setRepeat(MathUtils.parseInt(str));
                        actionBean.setDetail(new Gson().toJson(detailBean));
                    }
                }, true);
            }
        });
    }

    private void showImg(ActionBean actionBean, LinearLayout linearLayout, ImageView imageView, TextView textView, final DetailBean detailBean) {
        linearLayout.setVisibility(View.VISIBLE);
        Glide.with(MyApp.getContext()).load(detailBean.getImgPath()).apply(new RequestOptions().skipMemoryCache(true).diskCacheStrategy(DiskCacheStrategy.NONE).fitCenter()).into(imageView);
        textView.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                EditDialogUtil.mDialogDetail.dismiss();
                ArrayList arrayList = new ArrayList();
                arrayList.add(new MenuBean(R.drawable.edit_time, "直接编辑", null));
                arrayList.add(new MenuBean(R.drawable.icon_shortcut, "选择相片", null));
                EditDialogUtil.this.buttomMenuDialog(MyApp.getContext(), 4, arrayList, new OnMenuClickListener() {

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.OnMenuClickListener
                    public void click(int i) {
                        if (i == 0) {
                            YYCutSDK.getInstance(MyApp.getContext()).cut(detailBean.getImgPath(), true, YYCutSDK.CutShape.Rect, new YYCutSDK.OnYYCutListener() {
                                @Override
                                public void result(boolean z, String str, Bitmap bitmap) {
                                    if (z) {
                                        ImgUtil.saveBitmpToFile(bitmap, new File(detailBean.getImgPath()));
                                    }
                                }
                            });
                        } else if (i == 1) {
                            YYChoseSDK.getInstance(MyApp.getContext()).chosePic(false, 1, new YYChoseSDK.OnSelectListener() {

                                @Override // com.youyi.yychosesdk.SDK.YYChoseSDK.OnSelectListener
                                public void onCancel() {
                                }

                                @Override // com.youyi.yychosesdk.SDK.YYChoseSDK.OnSelectListener
                                public void onResult(ArrayList<Photo> arrayList, boolean z) {
                                    YYCutSDK.getInstance(MyApp.getContext()).cut(arrayList.get(0).path, true, YYCutSDK.CutShape.Oval, new YYCutSDK.OnYYCutListener() {

                                        @Override // com.youyi.yycutsdklibrary.SDK.YYCutSDK.OnYYCutListener
                                        public void result(boolean z, String str, Bitmap bitmap) {
                                            if (z) {
                                                ImgUtil.saveBitmpToFile(bitmap, new File(detailBean.getImgPath()));
                                            }
                                        }
                                    });
                                }
                            });
                        }
                    }
                }, true, false);
            }
        });
    }

    public static void resumeData() {
        mDialogDetail.show();
        Glide.with(MyApp.getContext()).load(mStaticImgPath).apply(new RequestOptions().skipMemoryCache(true).diskCacheStrategy(DiskCacheStrategy.NONE).fitCenter()).into(mStaticImg);
    }

    private void showOffset(final ActionBean actionBean, final String str, LinearLayout linearLayout, TextView textView, final TextView textView2, ImageView imageView, final DetailBean detailBean) {
        linearLayout.setVisibility(View.VISIBLE);
        textView.setText(str + "：");
        textView2.setText("X偏移：" + detailBean.getOffsetX() + ",Y偏移：" + detailBean.getOffsetY());
        imageView.setOnClickListener(new View.OnClickListener() {

            public void onClick(View view) {
                ClickUtils.onlyVibrate(MyApp.getContext());
                EditDialogUtil.this.choseOffSet(MyApp.getContext(), str, detailBean.getOffsetX(), detailBean.getOffsetY(), new OnOffetListener() {

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.OnOffetListener
                    public void result(int i, int i2) {
                        TextView textView = textView2;
                        textView.setText("X偏移：" + i + ",Y偏移：" + i2);
                        detailBean.setOffsetX(i);
                        detailBean.setOffsetY(i2);
                        actionBean.setDetail(new Gson().toJson(detailBean));
                    }
                }, true);
            }
        });
    }

    private void showRange(final Context context, final String str, final ActionBean actionBean, LinearLayout linearLayout, TextView textView, final TextView textView2, ImageView imageView, final DetailBean detailBean) {
        linearLayout.setVisibility(View.VISIBLE);
        textView.setText(str + "：");
        textView2.setText(detailBean.getMinNum() + "~" + detailBean.getMaxNum());
        imageView.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                ClickUtils.onlyVibrate(MyApp.getContext());
                EditDialogUtil.this.choseMaxAndMin(context, str, new OnMaxMinListener() {

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.OnMaxMinListener
                    public void result(int i, int i2) {
                        TextView textView = textView2;
                        textView.setText(i + "~" + i2);
                        detailBean.setMinNum(i);
                        detailBean.setMaxNum(i2);
                        actionBean.setDetail(new Gson().toJson(detailBean));
                    }
                }, true);
            }
        });
    }

    private void showTextList(final Context context, final String str, final ActionBean actionBean, LinearLayout linearLayout, TextView textView, final TextView textView2, ImageView imageView, final DetailBean detailBean) {
        linearLayout.setVisibility(View.VISIBLE);
        textView.setText(str + "：");
        textView2.setText(detailBean.getStringList().size() + "条");
        imageView.setOnClickListener(new View.OnClickListener() {

            public void onClick(View view) {
                ClickUtils.onlyVibrate(MyApp.getContext());
                EditDialogUtil.this.showTextList(context, str, detailBean.getStringList(), new OnTextListListener() {

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.OnTextListListener
                    public void result(List<String> list) {
                        try {
                            EditDialogUtil.mDialogDetail.show();
                            detailBean.setStringList(list);
                            TextView textView = textView2;
                            textView.setText(list.size() + "条");
                            actionBean.setDetail(new Gson().toJson(detailBean));
                        } catch (Exception e) {
                            e.printStackTrace();
                        }
                    }
                }, true);
            }
        });
    }

    private void showUserList(final Context context, String str, final ActionBean actionBean, LinearLayout linearLayout, TextView textView, final TextView textView2, ImageView imageView, final DetailBean detailBean) {
        linearLayout.setVisibility(View.VISIBLE);
        textView.setText(str + "：");
        textView2.setText(detailBean.getTextUserList().size() + "组");
        imageView.setOnClickListener(new View.OnClickListener() {

            public void onClick(View view) {
                ClickUtils.onlyVibrate(MyApp.getContext());
                EditDialogUtil.this.showUserNameList(context, detailBean.getTextUserList(), new OnTextUserListListener() {
                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.OnTextUserListListener
                    public void result(List<TextUserName> list) {
                        if (list == null) {
                            try {
                                list = new ArrayList<>();
                            } catch (Exception e) {
                                e.printStackTrace();
                                return;
                            }
                        }
                        detailBean.setTextUserList(list);
                        TextView textView = textView2;
                        textView.setText(list.size() + "组");
                        actionBean.setDetail(new Gson().toJson(detailBean));
                        EditDialogUtil.mDialogDetail.show();
                    }
                });
            }
        });
    }

    private void showThreeList(final Context context, String str, final ActionBean actionBean, LinearLayout linearLayout, TextView textView, final TextView textView2, ImageView imageView, final DetailBean detailBean) {
        linearLayout.setVisibility(View.VISIBLE);
        textView.setText(str + "：");
        textView2.setText(detailBean.getThreeBeanList().size() + "组");
        imageView.setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass101 */

            public void onClick(View view) {
                ClickUtils.onlyVibrate(MyApp.getContext());
                EditDialogUtil.this.showThreeList(context, detailBean.getThreeBeanList(), new OnTextThreeListListener() {
                    /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass101.AnonymousClass1 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.OnTextThreeListListener
                    public void result(List<TextThreeBean> list) {
                        if (list == null) {
                            try {
                                list = new ArrayList<>();
                            } catch (Exception e) {
                                e.printStackTrace();
                                return;
                            }
                        }
                        detailBean.setThreeBeanList(list);
                        TextView textView = textView2;
                        textView.setText(list.size() + "组");
                        actionBean.setDetail(new Gson().toJson(detailBean));
                        EditDialogUtil.mDialogDetail.show();
                    }
                });
            }
        });
    }

    private void showIntVallue(final Context context, final String str, final ActionBean actionBean, LinearLayout linearLayout, TextView textView, final TextView textView2, ImageView imageView, final DetailBean detailBean) {
        if (detailBean != null) {
            linearLayout.setVisibility(View.VISIBLE);
            textView.setText(str + "：");
            textView2.setText(detailBean.getValue() + "");
            imageView.setOnClickListener(new View.OnClickListener() {
                /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass102 */

                public void onClick(View view) {
                    ClickUtils.onlyVibrate(MyApp.getContext());
                    EditDialogUtil editDialogUtil = EditDialogUtil.this;
                    editDialogUtil.edit(context, 2, str, "请输入", detailBean.getValue() + "", new EditMethod() {
                        /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass102.AnonymousClass1 */

                        @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                        public void edit(String str) {
                            textView2.setText(str);
                            detailBean.setValue(MathUtils.parseInt(str));
                            actionBean.setDetail(new Gson().toJson(detailBean));
                        }
                    }, true);
                }
            });
        }
    }

    private void showPointList(final Context context, final String str, final boolean z, final ActionBean actionBean, LinearLayout linearLayout, TextView textView, final TextView textView2, ImageView imageView, final DetailBean detailBean) {
        linearLayout.setVisibility(View.VISIBLE);
        textView.setText(str + "：");
        textView2.setText(detailBean.getPointBeanList().size() + "个点");
        imageView.setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass103 */

            public void onClick(View view) {
                ClickUtils.onlyVibrate(MyApp.getContext());
                EditDialogUtil.mDialogDetail.hide();
                EditDialogUtil.this.showPointList(context, z, str, detailBean.getPointBeanList(), new OnPointChoseListener() {

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.OnPointChoseListener
                    public void result(List<PointBean> list) {
                        EditDialogUtil.mDialogDetail.show();
                        TextView textView = textView2;
                        textView.setText(list.size() + "个点");
                        detailBean.setPointBeanList(list);
                        actionBean.setDetail(new Gson().toJson(detailBean));
                    }
                }, true);
            }
        });
    }

    private void showRectColor(Context context, String str, final ActionBean actionBean, LinearLayout linearLayout, TextView textView, final TextView textView2, TextView textView3, TextView textView4, final DetailBean detailBean) {
        linearLayout.setVisibility(View.VISIBLE);
        textView.setText(str + "：");
        textView2.setText(detailBean.getIfBeanColor().getRect().left + "," + detailBean.getIfBeanColor().getRect().top + "," + detailBean.getIfBeanColor().getRect().right + "," + detailBean.getIfBeanColor().getRect().bottom);
        textView3.setOnClickListener(new View.OnClickListener() {

            public void onClick(View view) {
                EditDialogUtil.mDialogDetail.dismiss();
                YYScreenCutSDK.getInstance().getRectData(MyApp.getContext(), null, new YYScreenCutSDK.OnRectListener() {
                    @Override // com.youyi.yyscreencutlibrary.SDK.YYScreenCutSDK.OnRectListener
                    public void result(boolean z, Rect rect) {
                        detailBean.setRect(rect);
                        IfBeanColor ifBeanColor = detailBean.getIfBeanColor();
                        ifBeanColor.setRect(rect);
                        detailBean.setIfBeanColor(ifBeanColor);
                        TextView textView = textView2;
                        textView.setText(rect.left + "," + rect.top + "," + rect.right + "," + rect.bottom);
                        actionBean.setDetail(new Gson().toJson(detailBean));
                        EditDialogUtil.mDialogDetail.show();
                    }
                });
            }
        });
        textView4.setVisibility(View.GONE);
    }

    private void showRect(final Context context, String str, final ActionBean actionBean, LinearLayout linearLayout, TextView textView, final TextView textView2, TextView textView3, TextView textView4, final DetailBean detailBean) {
        linearLayout.setVisibility(View.VISIBLE);
        textView.setText(str + "：");
        textView2.setText(detailBean.getRect().left + "," + detailBean.getRect().top + "," + detailBean.getRect().right + "," + detailBean.getRect().bottom);
        textView3.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                EditDialogUtil.mDialogDetail.dismiss();
                YYScreenCutSDK.getInstance().getRectData(MyApp.getContext(), null, new YYScreenCutSDK.OnRectListener() {
                    @Override // com.youyi.yyscreencutlibrary.SDK.YYScreenCutSDK.OnRectListener
                    public void result(boolean z, Rect rect) {
                        detailBean.setRect(rect);
                        TextView textView = textView2;
                        textView.setText(rect.left + "," + rect.top + "," + rect.right + "," + rect.bottom);
                        actionBean.setDetail(new Gson().toJson(detailBean));
                        EditDialogUtil.mDialogDetail.show();
                    }
                });
            }
        });
        textView4.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                ClickUtils.onlyVibrate(MyApp.getContext());
                EditDialogUtil.this.changeRect(context, detailBean.getRect(), new OnRectChangeListener() {
                    @Override
                    public void result(Rect rect) {
                        TextView textView = textView2;
                        textView.setText("(" + rect.left + "," + rect.top + "," + rect.right + "," + rect.bottom + ")");
                        detailBean.setRect(rect);
                        actionBean.setDetail(new Gson().toJson(detailBean));
                    }
                });
            }
        });
    }

    private void showDuration(final Context context, final String str, final String str2, final ActionBean actionBean, LinearLayout linearLayout, TextView textView, final TextView textView2, ImageView imageView, final DetailBean detailBean) {
        linearLayout.setVisibility(View.VISIBLE);
        textView.setText(str + "：");
        textView2.setText(detailBean.getDruation() + str2);
        imageView.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                ClickUtils.onlyVibrate(MyApp.getContext());
                EditDialogUtil editDialogUtil = EditDialogUtil.this;
                editDialogUtil.edit(context, 2, str, "请输入", detailBean.getDruation() + "", new EditMethod() {
                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                    public void edit(String str) {
                        try {
                            TextView textView = textView2;
                            textView.setText(str + str2);
                            detailBean.setDruation(MathUtils.parseInt(str));
                            actionBean.setDetail(new Gson().toJson(detailBean));
                        } catch (NumberFormatException e) {
                            e.printStackTrace();
                            ToastUtil.err("数字太大或格式不对");
                        }
                    }
                }, true);
            }
        });
    }

    private void showPoint(final Context context, String str, final ActionBean actionBean, LinearLayout linearLayout, TextView textView, final TextView textView2, ImageView imageView, final DetailBean detailBean) {
        linearLayout.setVisibility(View.VISIBLE);
        textView.setText(str + "：");
        textView2.setText("X=" + detailBean.getPointBean().getX() + ",Y=" + detailBean.getPointBean().getY());
        imageView.setOnClickListener(new View.OnClickListener() {

            public void onClick(View view) {
                ClickUtils.onlyVibrate(MyApp.getContext());
                if (detailBean != null) {
                    EditDialogUtil.this.changPoint(context, detailBean.getPointBean(), new OnPointChangeListener() {
                        @Override // com.lmiot.xyclick.Util.EditDialogUtil.OnPointChangeListener
                        public void result(PointBean pointBean) {
                            TextView textView = textView2;
                            textView.setText("X=" + pointBean.getX() + ",Y=" + pointBean.getY());
                            detailBean.setPointBean(pointBean);
                            actionBean.setDetail(new Gson().toJson(detailBean));
                        }
                    });
                }
            }
        });
    }

    private void showLogicValue(Context context, String str, final ActionBean actionBean, LinearLayout linearLayout, TextView textView, final TextView textView2, ImageView imageView, final DetailBean detailBean) {
        linearLayout.setVisibility(View.VISIBLE);
        textView.setText(str + "：");
        textView2.setText(detailBean.getLogicBeanList().size() + "个");
        imageView.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                ClickUtils.onlyVibrate(MyApp.getContext());
                EditDialogUtil.this.showLogicList(MyApp.getContext(), detailBean.getLogicBeanList(), new OnLogicListener() {
                    @Override
                    public void result(List<IfBean> list) {
                        TextView textView = textView2;
                        textView.setText(list.size() + "个");
                        if (list.size() == 0) {
                            ToastUtil.warning("您还没选择条件");
                            return;
                        }
                        detailBean.setLogicBeanList(list);
                        actionBean.setDetail(new Gson().toJson(detailBean));
                    }
                });
            }
        });
    }

    private void showTextValue(final Context context, final String str, final ActionBean actionBean, LinearLayout linearLayout, TextView textView, final TextView textView2, ImageView imageView, final DetailBean detailBean) {
        linearLayout.setVisibility(View.VISIBLE);
        textView.setText(str + "：");
        textView2.setText(detailBean.getText());
        imageView.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                ClickUtils.onlyVibrate(MyApp.getContext());
                EditDialogUtil.this.edit(context, 1, str, "请输入", detailBean.getText(), new EditMethod() {
                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                    public void edit(String str) {
                        textView2.setText(str);
                        detailBean.setText(str);
                        actionBean.setDetail(new Gson().toJson(detailBean));
                    }
                }, true);
            }
        });
    }

    private void showHttpUrlValue(final Context context, final String str, final ActionBean actionBean, LinearLayout linearLayout, TextView textView, final TextView textView2, ImageView imageView, final DetailBean detailBean) {
        linearLayout.setVisibility(View.VISIBLE);
        textView.setText(str + "：");
        textView2.setText(detailBean.getHttpUrl());
        imageView.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                ClickUtils.onlyVibrate(MyApp.getContext());
                EditDialogUtil.this.edit(context, 1, str, "请输入", detailBean.getHttpUrl(), new EditMethod() {
                    @Override
                    public void edit(String str) {
                        textView2.setText(str);
                        detailBean.setHttpUrl(str);
                        actionBean.setDetail(new Gson().toJson(detailBean));
                    }
                }, true);
            }
        });
    }

    private void showGotoNum(Context context, final boolean z, String str, final ActionBean actionBean, LinearLayout linearLayout, TextView textView, final TextView textView2, ImageView imageView, final DetailBean detailBean) {
        linearLayout.setVisibility(View.VISIBLE);
        textView.setText(str + "：");
        if (z) {
            textView2.setText(AutoUtils.getMarkString(detailBean.getGotoAction()));
        } else {
            textView2.setText("第" + detailBean.getGotoNum() + "个动作");
        }
        imageView.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                ClickUtils.onlyVibrate(MyApp.getContext());
                EditDialogUtil.this.gotoAction(MyApp.getContext(), z, detailBean.getGotoNum(), detailBean.getGotoAction(), ActionBeanSqlUtil.getInstance().searchByID(actionBean.getAutoID()), new OnChoseActionNum() {
                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.OnChoseActionNum
                    public void result(int i, ActionBean actionBean) {
                        if (z) {
                            textView2.setText(AutoUtils.getMarkString(actionBean));
                        } else {
                            TextView textView = textView2;
                            textView.setText("第" + i + "个动作");
                        }
                        detailBean.setGotoNum(i);
                        detailBean.setGotoAction(actionBean);
                        actionBean.setDetail(new Gson().toJson(detailBean));
                    }
                });
            }
        });
    }

    private void showRepeat(final Context context, final String str, final ActionBean actionBean, LinearLayout linearLayout, TextView textView, final TextView textView2, ImageView imageView, final DetailBean detailBean) {
        linearLayout.setVisibility(View.VISIBLE);
        textView.setText(str + "：");
        textView2.setText(detailBean.getRepeat() + "次");
        imageView.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                ClickUtils.onlyVibrate(MyApp.getContext());
                EditDialogUtil editDialogUtil = EditDialogUtil.this;
                editDialogUtil.edit(context, InputDeviceCompat.SOURCE_TOUCHSCREEN, str, "请输入", detailBean.getRepeat() + "", new EditMethod() {
                    @Override
                    public void edit(String str) {
                        try {
                            TextView textView = textView2;
                            textView.setText(str + "次");
                            detailBean.setRepeat(MathUtils.parseInt(str));
                            actionBean.setDetail(new Gson().toJson(detailBean));
                        } catch (NumberFormatException e) {
                            e.printStackTrace();
                            ToastUtil.err("数字太大或格式不对");
                        }
                    }
                }, true);
            }
        });
    }

    private Constants.ActionEnum findEnum(String str) {
        Constants.ActionEnum[] values = Constants.ActionEnum.values();
        for (Constants.ActionEnum actionEnum : values) {
            if (actionEnum.getType().equals(str)) {
                return actionEnum;
            }
        }
        return null;
    }

    public static class MenuBean {
        private String detail;
        private int img;
        private String name;

        public MenuBean(int i, String str, String str2) {
            this.img = i;
            this.name = str;
            this.detail = str2;
        }

        public int getImg() {
            return this.img;
        }

        public void setImg(int i) {
            this.img = i;
        }

        public String getName() {
            return this.name;
        }

        public void setName(String str) {
            this.name = str;
        }

        public String getDetail() {
            return this.detail;
        }

        public void setDetail(String str) {
            this.detail = str;
        }
    }

    public void showForPlusList(final Context context, List<ActionBean> list, final OnActionListListener onActionListListener) {
        Dialog dialog = this.mDialog;
        if (dialog != null && dialog.isShowing()) {
            this.mDialog.dismiss();
        }
        this.mDialog = LayoutDialogUtil.createSysDailog(context, R.layout.dialog_chose_actionlist);
        this.mActionList = list;
        if (list == null) {
            this.mActionList = new ArrayList();
        }
        this.mDialog.setCancelable(true);
        ListView listView = (ListView) this.mDialog.findViewById(R.id.id_listivew);
        TextView textView = (TextView) this.mDialog.findViewById(R.id.id_empty);
        TextView textView2 = (TextView) this.mDialog.findViewById(R.id.tv_sure);
        TextView textView3 = (TextView) this.mDialog.findViewById(R.id.tv_cancel);
        if (this.mActionList.size() == 0) {
            textView.setVisibility(View.VISIBLE);
            listView.setVisibility(View.GONE);
        } else {
            textView.setVisibility(View.GONE);
            listView.setVisibility(View.VISIBLE);
        }
        List<ActionBean> list2 = this.mActionList;
        if (list2 != null) {
            if (list2.size() > 5) {
                listView.setLayoutParams(new LinearLayout.LayoutParams(-1, DpUtil.dip2px(MyApp.getContext(), 400.0f)));
            } else {
                listView.setLayoutParams(new LinearLayout.LayoutParams(-1, -2));
            }
        }
        listView.setAdapter((ListAdapter) new ActionAdapter());
        textView2.setOnClickListener(new View.OnClickListener() {

            public void onClick(View view) {
                EditDialogUtil.this.mDialog.dismiss();
                if (onActionListListener != null) {
                    onActionListListener.result(EditDialogUtil.this.mActionList);
                }
            }
        });
        textView3.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                EditDialogUtil.this.mDialog.dismiss();
                ChoseActionFourUtil.getInstance().choseSecondActon("选择要执行的动作", new ChoseActionFourUtil.OnChoseActionListener() {
                    @Override
                    public void result(ActionBean actionBean) {
                        EditDialogUtil.this.mActionList.add(actionBean);
                        EditDialogUtil.this.showForPlusList(context, EditDialogUtil.this.mActionList, onActionListListener);
                    }
                });
            }
        });
    }

    public class ActionAdapter extends BaseAdapter {
        public Object getItem(int i) {
            return null;
        }

        public long getItemId(int i) {
            return 0;
        }

        private ActionAdapter() {
        }

        public int getCount() {
            return EditDialogUtil.this.mActionList.size();
        }

        public View getView(final int i, View view, ViewGroup viewGroup) {
            View inflate = View.inflate(MyApp.getContext(), R.layout.item_plus_for, null);
            ((TextView) inflate.findViewById(R.id.id_name)).setText(((ActionBean) EditDialogUtil.this.mActionList.get(i)).getActionName());
            ((ImageView) inflate.findViewById(R.id.id_del)).setOnClickListener(new View.OnClickListener() {
                public void onClick(View view) {
                    ClickUtils.onlyVibrate(MyApp.getContext());
                    EditDialogUtil.this.mActionList.remove(i);
                    ActionAdapter.this.notifyDataSetChanged();
                }
            });
            return inflate;
        }
    }

    public void showTimeList(Context context, String str, final OnTimeListListener onTimeListListener, boolean z) {
        try {
            Dialog dialog = this.mDialogTimeList;
            if (dialog != null && dialog.isShowing()) {
                this.mDialogTimeList.dismiss();
            }
            if (z) {
                this.mDialogTimeList = LayoutDialogUtil.createSysDailog(context, R.layout.dialog_chose_timelist);
            } else {
                this.mDialogTimeList = LayoutDialogUtil.createDailog(context, R.layout.dialog_chose_timelist);
            }
            this.mTimerBeanList = AlarmUtil.normalTimeToTimeList(str);
            this.mDialogTimeList.setCancelable(false);
            this.mTimeListlistView = (ListView) this.mDialogTimeList.findViewById(R.id.id_listivew);
            ((TextView) this.mDialogTimeList.findViewById(R.id.tv_sure)).setOnClickListener(new View.OnClickListener() {
                public void onClick(View view) {
                    EditDialogUtil.this.mDialogTimeList.dismiss();
                    if (onTimeListListener != null) {
                        onTimeListListener.result(EditDialogUtil.this.mTimerBeanList);
                    }
                }
            });
            ((TextView) this.mDialogTimeList.findViewById(R.id.tv_cancel)).setOnClickListener(new View.OnClickListener() {
                /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass117 */

                public void onClick(View view) {
                    EditDialogUtil.this.mDialogTimeList.dismiss();
                }
            });
            TimeListManager timeListManager = new TimeListManager(context);
            this.mTimeListManager = timeListManager;
            this.mTimeListlistView.setAdapter((ListAdapter) timeListManager);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public class TimeListManager extends BaseAdapter {
        Context mContext;

        public Object getItem(int i) {
            return null;
        }

        public long getItemId(int i) {
            return 0;
        }

        public TimeListManager(Context context) {
            this.mContext = context;
        }

        public int getCount() {
            if (EditDialogUtil.this.mTimerBeanList == null) {
                return 1;
            }
            return 1 + EditDialogUtil.this.mTimerBeanList.size();
        }

        public View getView(final int i, View view, ViewGroup viewGroup) {
            View inflate = View.inflate(MyApp.getContext(), R.layout.item_timelist, null);
            LinearLayout linearLayout = (LinearLayout) inflate.findViewById(R.id.id_main_layout);
            LinearLayout linearLayout2 = (LinearLayout) inflate.findViewById(R.id.id_add);
            final ImageView imageView = (ImageView) inflate.findViewById(R.id.id_on);
            final ImageView imageView2 = (ImageView) inflate.findViewById(R.id.id_off);
            ImageView imageView3 = (ImageView) inflate.findViewById(R.id.id_del);
            TextView textView = (TextView) inflate.findViewById(R.id.id_name);
            TextView textView2 = (TextView) inflate.findViewById(R.id.id_detail);
            RelativeLayout relativeLayout = (RelativeLayout) inflate.findViewById(R.id.id_check_layout);
            if (i == EditDialogUtil.this.mTimerBeanList.size()) {
                linearLayout.setVisibility(View.GONE);
                linearLayout2.setVisibility(View.VISIBLE);
                linearLayout2.setOnClickListener(new View.OnClickListener() {
                    /* class com.lmiot.xyclick.Util.EditDialogUtil.TimeListManager.AnonymousClass1 */

                    public void onClick(View view) {
                        EditDialogUtil.this.mDialogTimeList.hide();
                        EditDialogUtil.this.choseTime(-1);
                    }
                });
            } else {
                TimerBean timerBean = (TimerBean) EditDialogUtil.this.mTimerBeanList.get(i);
                linearLayout.setVisibility(View.VISIBLE);
                linearLayout2.setVisibility(View.GONE);
                textView.setText(timerBean.getTime());
                textView2.setText(timerBean.getWeek());
                if (timerBean.isOpen()) {
                    imageView.setVisibility(View.VISIBLE);
                    imageView2.setVisibility(View.GONE);
                } else {
                    imageView.setVisibility(View.GONE);
                    imageView2.setVisibility(View.VISIBLE);
                }
                String replace = timerBean.getWeek().replace("0", "日、").replace("1", "一、").replace("2", "二、").replace("3", "三、").replace("4", "四、").replace("5", "五、").replace("6", "六、");
                if (replace.endsWith("、")) {
                    textView2.setText("重复:" + replace.substring(0, replace.length() - 1));
                } else {
                    textView2.setText("重复:" + replace);
                }
                relativeLayout.setOnClickListener(new View.OnClickListener() {
                    public void onClick(View view) {
                        boolean isOpen = ((TimerBean) EditDialogUtil.this.mTimerBeanList.get(i)).isOpen();
                        ((TimerBean) EditDialogUtil.this.mTimerBeanList.get(i)).setOpen(!isOpen);
                        if (isOpen) {
                            imageView.setVisibility(View.GONE);
                            imageView2.setVisibility(View.VISIBLE);
                            return;
                        }
                        imageView.setVisibility(View.VISIBLE);
                        imageView2.setVisibility(View.GONE);
                    }
                });
                imageView3.setOnClickListener(new View.OnClickListener() {
                    public void onClick(View view) {
                        EditDialogUtil.this.mTimerBeanList.remove(i);
                        TimeListManager.this.notifyDataSetChanged();
                    }
                });
                inflate.setOnClickListener(new View.OnClickListener() {
                    public void onClick(View view) {
                        EditDialogUtil.this.mDialogTimeList.hide();
                        EditDialogUtil.this.choseTime(i);
                    }
                });
            }
            return inflate;
        }
    }

    private void choseTime(final int i) {
        int i2;
        int i3;
        try {
            Dialog createSysDailog = LayoutDialogUtil.createSysDailog(MyApp.getContext(), R.layout.dialog_change_tasktime_layout);
            this.mDialogTime = createSysDailog;
            TextConfigNumberPicker textConfigNumberPicker = (TextConfigNumberPicker) createSysDailog.findViewById(R.id.id_picker_hour);
            TextConfigNumberPicker textConfigNumberPicker2 = (TextConfigNumberPicker) this.mDialogTime.findViewById(R.id.id_picker_min);
            TextConfigNumberPicker textConfigNumberPicker3 = (TextConfigNumberPicker) this.mDialogTime.findViewById(R.id.id_picker_second);
            final CheckBox checkBox = (CheckBox) this.mDialogTime.findViewById(R.id.id_bt0);
            final CheckBox checkBox2 = (CheckBox) this.mDialogTime.findViewById(R.id.id_bt1);
            final CheckBox checkBox3 = (CheckBox) this.mDialogTime.findViewById(R.id.id_bt2);
            final CheckBox checkBox4 = (CheckBox) this.mDialogTime.findViewById(R.id.id_bt3);
            final CheckBox checkBox5 = (CheckBox) this.mDialogTime.findViewById(R.id.id_bt4);
            final CheckBox checkBox6 = (CheckBox) this.mDialogTime.findViewById(R.id.id_bt5);
            final CheckBox checkBox7 = (CheckBox) this.mDialogTime.findViewById(R.id.id_bt6);
            if (i == -1) {
                String[] split = TimeUtils.getAlarmTime().split(":");
                this.mHours_01 = AlarmUtil.findNum(this.typeList02, split[0]);
                this.mMinute_01 = AlarmUtil.findNum(this.typeList01, split[1]);
                this.mSecond_01 = AlarmUtil.findNum(this.typeList01, split[2]);
                checkBox.setChecked(true);
                checkBox2.setChecked(true);
                checkBox3.setChecked(true);
                checkBox4.setChecked(true);
                checkBox5.setChecked(true);
                checkBox6.setChecked(true);
                checkBox7.setChecked(true);
                i3 = 1;
            } else {
                TimerBean timerBean = this.mTimerBeanList.get(i);
                String time = timerBean.getTime();
                String week = timerBean.getWeek();
                String[] split2 = time.split(":");
                this.mHours_01 = AlarmUtil.findNum(this.typeList02, split2[0]);
                this.mMinute_01 = AlarmUtil.findNum(this.typeList01, split2[1]);
                this.mSecond_01 = AlarmUtil.findNum(this.typeList01, split2[2]);
                if (week.contains("0")) {
                    checkBox.setChecked(true);
                } else {
                    checkBox.setChecked(false);
                }
                if (week.contains("1")) {
                    checkBox2.setChecked(true);
                } else {
                    checkBox2.setChecked(false);
                }
                if (week.contains("2")) {
                    checkBox3.setChecked(true);
                } else {
                    checkBox3.setChecked(false);
                }
                if (week.contains("3")) {
                    checkBox4.setChecked(true);
                } else {
                    checkBox4.setChecked(false);
                }
                if (week.contains("4")) {
                    checkBox5.setChecked(true);
                } else {
                    checkBox5.setChecked(false);
                }
                if (week.contains("5")) {
                    checkBox6.setChecked(true);
                } else {
                    checkBox6.setChecked(false);
                }
                if (week.contains("6")) {
                    i3 = 1;
                    checkBox7.setChecked(true);
                } else {
                    i3 = 1;
                    i2 = 0;
                    checkBox7.setChecked(false);
                    setNunList(textConfigNumberPicker, i2);
                    setNunList(textConfigNumberPicker2, i3);
                    setNunList(textConfigNumberPicker3, 2);
                    TextView textView = (TextView) this.mDialogTime.findViewById(R.id.tv_sure);
                    ((TextView) this.mDialogTime.findViewById(R.id.tv_cancel)).setOnClickListener(new View.OnClickListener() {
                        public void onClick(View view) {
                            EditDialogUtil.this.mDialogTime.dismiss();
                            EditDialogUtil.this.mDialogTimeList.show();
                        }
                    });
                    textView.setOnClickListener(new View.OnClickListener() {
                        public void onClick(View view) {
                            EditDialogUtil.this.mDialogTime.dismiss();
                            String str = EditDialogUtil.this.typeList02[EditDialogUtil.this.mHours_01] + ":" + EditDialogUtil.this.typeList01[EditDialogUtil.this.mMinute_01] + ":" + EditDialogUtil.this.typeList01[EditDialogUtil.this.mSecond_01];
                            StringBuffer stringBuffer = new StringBuffer();
                            if (checkBox.isChecked()) {
                                stringBuffer.append("0");
                            }
                            if (checkBox2.isChecked()) {
                                stringBuffer.append("1");
                            }
                            if (checkBox3.isChecked()) {
                                stringBuffer.append("2");
                            }
                            if (checkBox4.isChecked()) {
                                stringBuffer.append("3");
                            }
                            if (checkBox5.isChecked()) {
                                stringBuffer.append("4");
                            }
                            if (checkBox6.isChecked()) {
                                stringBuffer.append("5");
                            }
                            if (checkBox7.isChecked()) {
                                stringBuffer.append("6");
                            }
                            TimerBean timerBean = new TimerBean(str, stringBuffer.toString(), true);
                            if (i == -1) {
                                EditDialogUtil.this.mTimerBeanList.add(timerBean);
                            } else {
                                EditDialogUtil.this.mTimerBeanList.set(i, timerBean);
                            }
                            EditDialogUtil.this.mDialogTimeList.show();
                            EditDialogUtil.this.mTimeListManager.notifyDataSetChanged();
                        }
                    });
                }
            }
            i2 = 0;
            setNunList(textConfigNumberPicker, i2);
            setNunList(textConfigNumberPicker2, i3);
            setNunList(textConfigNumberPicker3, 2);
            TextView textView2 = (TextView) this.mDialogTime.findViewById(R.id.tv_sure);
            ((TextView) this.mDialogTime.findViewById(R.id.tv_cancel)).setOnClickListener(new View.OnClickListener() {
                public void onClick(View view) {
                    EditDialogUtil.this.mDialogTime.dismiss();
                    EditDialogUtil.this.mDialogTimeList.show();
                }
            });
            textView2.setOnClickListener(new View.OnClickListener() {
                public void onClick(View view) {
                    EditDialogUtil.this.mDialogTime.dismiss();
                    String str = EditDialogUtil.this.typeList02[EditDialogUtil.this.mHours_01] + ":" + EditDialogUtil.this.typeList01[EditDialogUtil.this.mMinute_01] + ":" + EditDialogUtil.this.typeList01[EditDialogUtil.this.mSecond_01];
                    StringBuffer stringBuffer = new StringBuffer();
                    if (checkBox.isChecked()) {
                        stringBuffer.append("0");
                    }
                    if (checkBox2.isChecked()) {
                        stringBuffer.append("1");
                    }
                    if (checkBox3.isChecked()) {
                        stringBuffer.append("2");
                    }
                    if (checkBox4.isChecked()) {
                        stringBuffer.append("3");
                    }
                    if (checkBox5.isChecked()) {
                        stringBuffer.append("4");
                    }
                    if (checkBox6.isChecked()) {
                        stringBuffer.append("5");
                    }
                    if (checkBox7.isChecked()) {
                        stringBuffer.append("6");
                    }
                    TimerBean timerBean = new TimerBean(str, stringBuffer.toString(), true);
                    if (i == -1) {
                        EditDialogUtil.this.mTimerBeanList.add(timerBean);
                    } else {
                        EditDialogUtil.this.mTimerBeanList.set(i, timerBean);
                    }
                    EditDialogUtil.this.mDialogTimeList.show();
                    EditDialogUtil.this.mTimeListManager.notifyDataSetChanged();
                }
            });
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    private void setNunList(TextConfigNumberPicker textConfigNumberPicker, final int i) {
        if (i == 0) {
            textConfigNumberPicker.setMaxValue(this.typeList02.length - 1);
            textConfigNumberPicker.setDisplayedValues(this.typeList02);
            textConfigNumberPicker.setValue(this.mHours_01);
        } else if (i == 1) {
            textConfigNumberPicker.setMaxValue(this.typeList01.length - 1);
            textConfigNumberPicker.setDisplayedValues(this.typeList01);
            textConfigNumberPicker.setValue(this.mMinute_01);
        } else if (i == 2) {
            textConfigNumberPicker.setMaxValue(this.typeList01.length - 1);
            textConfigNumberPicker.setDisplayedValues(this.typeList01);
            textConfigNumberPicker.setValue(this.mSecond_01);
        }
        textConfigNumberPicker.setMinValue(0);
        textConfigNumberPicker.setWrapSelectorWheel(false);
        textConfigNumberPicker.setDescendantFocusability(393216);
        textConfigNumberPicker.setOnValueChangedListener(new NumberPicker.OnValueChangeListener() {
            public void onValueChange(NumberPicker numberPicker, int i, int i2) {
                int i3 = i;
                if (i3 == 0) {
                    EditDialogUtil.this.mHours_01 = i2;
                } else if (i3 == 1) {
                    EditDialogUtil.this.mMinute_01 = i2;
                } else if (i3 == 2) {
                    EditDialogUtil.this.mSecond_01 = i2;
                }
            }
        });
    }

    public void choseFgDev(Context context, String str, Set<String> set, final ShareEditMethod shareEditMethod, boolean z) {
        Dialog dialog = this.mDialog;
        if (dialog != null && dialog.isShowing()) {
            this.mDialog.dismiss();
        }
        this.mRemoteDevSet = set;
        if (set == null) {
            this.mRemoteDevSet = new HashSet();
        }
        if (z) {
            this.mDialog = LayoutDialogUtil.createSysDailog(context, R.layout.dialog_fg_remove);
        } else {
            this.mDialog = LayoutDialogUtil.createDailog(context, R.layout.dialog_fg_remove);
        }
        ((ListView) this.mDialog.findViewById(R.id.id_listivew)).setAdapter((ListAdapter) new FGDevAdapter(context, FriendBeanSqlUtil.getInstance().searchAllByGroupIDOther(str)));
        ((TextView) this.mDialog.findViewById(R.id.tv_sure)).setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                EditDialogUtil.this.mDialog.dismiss();
                if (EditDialogUtil.this.mRemoteDevSet.size() <= 0) {
                    ToastUtil.warning("请至少选择一个设备！");
                } else {
                    shareEditMethod.edit(EditDialogUtil.this.mRemoteDevSet);
                }
            }
        });
        ((TextView) this.mDialog.findViewById(R.id.tv_cancel)).setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass122 */

            public void onClick(View view) {
                EditDialogUtil.this.mDialog.dismiss();
            }
        });
    }

    private class FGDevAdapter extends BaseAdapter {
        Context mContext;
        List<FriendBean> mList;

        public Object getItem(int i) {
            return null;
        }

        public long getItemId(int i) {
            return 0;
        }

        public FGDevAdapter(Context context, List<FriendBean> list) {
            this.mContext = context;
            this.mList = list;
        }

        public int getCount() {
            return this.mList.size();
        }

        public View getView(int i, View view, ViewGroup viewGroup) {
            View inflate = View.inflate(this.mContext, R.layout.item_chose_remote_dev, null);
            ImageView imageView = (ImageView) inflate.findViewById(R.id.id_checked);
            ImageView imageView2 = (ImageView) inflate.findViewById(R.id.id_unchecked);
            ((TextView) inflate.findViewById(R.id.id_name)).setText(this.mList.get(i).getUserName());
            final String userID = this.mList.get(i).getUserID();
            ((TextView) inflate.findViewById(R.id.id_detail)).setText("ID：" + userID);
            if (!EditDialogUtil.this.mRemoteDevSet.contains(userID)) {
                imageView.setVisibility(View.VISIBLE);
                imageView2.setVisibility(View.GONE);
            } else {
                imageView.setVisibility(View.GONE);
                imageView2.setVisibility(View.VISIBLE);
            }
            inflate.setOnClickListener(new View.OnClickListener() {
                /* class com.lmiot.xyclick.Util.EditDialogUtil.FGDevAdapter.AnonymousClass1 */

                public void onClick(View view) {
                    if (EditDialogUtil.this.mRemoteDevSet.contains(userID)) {
                        EditDialogUtil.this.mRemoteDevSet.remove(userID);
                    } else {
                        EditDialogUtil.this.mRemoteDevSet.add(userID);
                    }
                    FGDevAdapter.this.notifyDataSetChanged();
                }
            });
            return inflate;
        }
    }

    public void choseRemoteDev(final Context context, Set<String> set, final ShareEditMethod shareEditMethod, boolean z) {
        Dialog dialog = this.mDialog;
        if (dialog != null && dialog.isShowing()) {
            this.mDialog.dismiss();
        }
        this.mRemoteDevSet = set;
        if (set == null) {
            this.mRemoteDevSet = new HashSet();
        }
        if (z) {
            this.mDialog = LayoutDialogUtil.createSysDailog(context, R.layout.dialog_edit_remote_dev);
        } else {
            this.mDialog = LayoutDialogUtil.createDailog(context, R.layout.dialog_edit_remote_dev);
        }
        ((ListView) this.mDialog.findViewById(R.id.id_listivew)).setAdapter((ListAdapter) new RemoteDevAdapter(context, FriendBeanSqlUtil.getInstance().searchAll()));
        ((TextView) this.mDialog.findViewById(R.id.id_add)).setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass123 */

            public void onClick(View view) {
                EditDialogUtil.this.mDialog.dismiss();
                ActivityUtil.skipActivity(context, GroupControlActivity.class);
            }
        });
        ((TextView) this.mDialog.findViewById(R.id.tv_sure)).setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass124 */

            public void onClick(View view) {
                EditDialogUtil.this.mDialog.dismiss();
                if (EditDialogUtil.this.mRemoteDevSet.size() <= 0) {
                    ToastUtil.warning("请至少选择一个设备！");
                } else {
                    shareEditMethod.edit(EditDialogUtil.this.mRemoteDevSet);
                }
            }
        });
        ((TextView) this.mDialog.findViewById(R.id.tv_cancel)).setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass125 */

            public void onClick(View view) {
                EditDialogUtil.this.mDialog.dismiss();
            }
        });
    }

    /* access modifiers changed from: private */
    public class RemoteDevAdapter extends BaseAdapter {
        Context mContext;
        List<FriendBean> mList;

        public Object getItem(int i) {
            return null;
        }

        public long getItemId(int i) {
            return 0;
        }

        public RemoteDevAdapter(Context context, List<FriendBean> list) {
            this.mContext = context;
            this.mList = list;
        }

        public int getCount() {
            return this.mList.size();
        }

        public View getView(int i, View view, ViewGroup viewGroup) {
            View inflate = View.inflate(this.mContext, R.layout.item_chose_remote_dev, null);
            ImageView imageView = (ImageView) inflate.findViewById(R.id.id_checked);
            ImageView imageView2 = (ImageView) inflate.findViewById(R.id.id_unchecked);
            ((TextView) inflate.findViewById(R.id.id_name)).setText(this.mList.get(i).getUserName());
            final String userID = this.mList.get(i).getUserID();
            ((TextView) inflate.findViewById(R.id.id_detail)).setText("ID：" + userID);
            if (!EditDialogUtil.this.mRemoteDevSet.contains(userID)) {
                imageView.setVisibility(View.VISIBLE);
                imageView2.setVisibility(View.GONE);
            } else {
                imageView.setVisibility(View.GONE);
                imageView2.setVisibility(View.VISIBLE);
            }
            inflate.setOnClickListener(new View.OnClickListener() {
                /* class com.lmiot.xyclick.Util.EditDialogUtil.RemoteDevAdapter.AnonymousClass1 */

                public void onClick(View view) {
                    if (EditDialogUtil.this.mRemoteDevSet.contains(userID)) {
                        EditDialogUtil.this.mRemoteDevSet.remove(userID);
                    } else {
                        EditDialogUtil.this.mRemoteDevSet.add(userID);
                    }
                    RemoteDevAdapter.this.notifyDataSetChanged();
                }
            });
            return inflate;
        }
    }

    public void choseRemoteAuto(Context context, String str, final OnBasicListener onBasicListener, boolean z) {
        try {
            Dialog dialog = this.mDialog;
            if (dialog != null && dialog.isShowing()) {
                this.mDialog.dismiss();
            }
            if (z) {
                this.mDialog = LayoutDialogUtil.createSysDailog(context, R.layout.dialog_chose_remote_dev_auto);
            } else {
                this.mDialog = LayoutDialogUtil.createDailog(context, R.layout.dialog_chose_remote_dev_auto);
            }
            this.mRemoteAutoID = str;
            this.mRemoteAutoSearchName = "";
            List<AutoBean> searchAll = AutoBeanSqlUtil.getInstance().searchAll();
            ChoseRemoteDevAdapter choseRemoteDevAdapter = new ChoseRemoteDevAdapter(context, searchAll);
            this.mChoseRemoteDevAdapter = choseRemoteDevAdapter;
            ((ListView) this.mDialog.findViewById(R.id.id_listview)).setAdapter((ListAdapter) choseRemoteDevAdapter);
            setEditAuto((EditText) this.mDialog.findViewById(R.id.id_search_edit), searchAll);
            ((TextView) this.mDialog.findViewById(R.id.tv_cancel)).setOnClickListener(new View.OnClickListener() {
                /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass126 */

                public void onClick(View view) {
                    EditDialogUtil.this.mDialog.dismiss();
                }
            });
            ((TextView) this.mDialog.findViewById(R.id.tv_sure)).setOnClickListener(new View.OnClickListener() {
                /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass127 */

                public void onClick(View view) {
                    if (TextUtils.isEmpty(EditDialogUtil.this.mRemoteAutoID)) {
                        ToastUtil.warning("请先选一个自动化！");
                        return;
                    }
                    EditDialogUtil.this.mDialog.dismiss();
                    onBasicListener.result(true, EditDialogUtil.this.mRemoteAutoID);
                }
            });
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    private void setEditAuto(EditText editText, final List<AutoBean> list) {
        editText.addTextChangedListener(new TextWatcher() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass128 */

            public void afterTextChanged(Editable editable) {
            }

            public void beforeTextChanged(CharSequence charSequence, int i, int i2, int i3) {
            }

            public void onTextChanged(CharSequence charSequence, int i, int i2, int i3) {
                EditDialogUtil.this.mRemoteAutoSearchName = charSequence.toString();
                if (!TextUtils.isEmpty(EditDialogUtil.this.mRemoteAutoSearchName)) {
                    ArrayList arrayList = new ArrayList();
                    if (list != null && list.size() > 0) {
                        for (AutoBean autoBean : list) {
                            if (autoBean.getAutoName().contains(EditDialogUtil.this.mRemoteAutoSearchName)) {
                                arrayList.add(autoBean);
                            }
                        }
                        if (EditDialogUtil.this.mChoseRemoteDevAdapter != null) {
                            EditDialogUtil.this.mChoseRemoteDevAdapter.setData(arrayList, EditDialogUtil.this.mRemoteAutoSearchName);
                        }
                    }
                } else if (EditDialogUtil.this.mChoseRemoteDevAdapter != null) {
                    EditDialogUtil.this.mChoseRemoteDevAdapter.setData(list, null);
                }
            }
        });
    }

    /* access modifiers changed from: private */
    public class ChoseRemoteDevAdapter extends BaseAdapter {
        private List<AutoBean> autoList;
        private Context mContext;

        public Object getItem(int i) {
            return null;
        }

        public long getItemId(int i) {
            return 0;
        }

        public ChoseRemoteDevAdapter(Context context, List<AutoBean> list) {
            this.mContext = context;
            this.autoList = list;
        }

        public int getCount() {
            List<AutoBean> list = this.autoList;
            if (list == null) {
                return 0;
            }
            return list.size();
        }

        public View getView(int i, View view, ViewGroup viewGroup) {
            final AutoBean autoBean = this.autoList.get(i);
            View inflate = View.inflate(this.mContext, R.layout.item_chose_groud_auto, null);
            ImageView imageView = (ImageView) inflate.findViewById(R.id.id_checked);
            ImageView imageView2 = (ImageView) inflate.findViewById(R.id.id_unchecked);
            TextView textView = (TextView) inflate.findViewById(R.id.id_name);
            String autoID = autoBean.getAutoID();
            String autoName = autoBean.getAutoName();
            if (TextUtils.isEmpty(EditDialogUtil.this.mRemoteAutoSearchName)) {
                textView.setText(autoName);
            } else {
                String str = EditDialogUtil.this.mRemoteAutoSearchName;
                textView.setText(Html.fromHtml(autoName.replace(str, "<font color='#FF0000'>" + EditDialogUtil.this.mRemoteAutoSearchName + "</font>")));
            }
            if (TextUtils.isEmpty(EditDialogUtil.this.mRemoteAutoID)) {
                imageView.setVisibility(View.GONE);
                imageView2.setVisibility(View.VISIBLE);
            } else if (EditDialogUtil.this.mRemoteAutoID.equals(autoID)) {
                imageView.setVisibility(View.VISIBLE);
                imageView2.setVisibility(View.GONE);
            } else {
                imageView.setVisibility(View.GONE);
                imageView2.setVisibility(View.VISIBLE);
            }
            inflate.setOnClickListener(new View.OnClickListener() {
                public void onClick(View view) {
                    EditDialogUtil.this.mRemoteAutoID = autoBean.getAutoID();
                    ChoseRemoteDevAdapter.this.notifyDataSetChanged();
                }
            });
            return inflate;
        }

        public void setData(List<AutoBean> list, String str) {
            this.autoList = list;
            EditDialogUtil.this.mRemoteAutoSearchName = str;
            notifyDataSetChanged();
        }
    }

    public void buttomCopyListDialog(Context context, OnCopyClickListener onCopyClickListener) {
        Dialog dialog = this.mDialog;
        if (dialog != null && dialog.isShowing()) {
            this.mDialog.dismiss();
        }
        if (context instanceof MyApp) {
            this.mDialog = LayoutDialogUtil.createBottomDailog(context, R.layout.dialog_copy_list);
        } else {
            this.mDialog = LayoutDialogUtil.createBottomDailog(context, R.layout.dialog_copy_list);
        }
        ((ListView) this.mDialog.findViewById(R.id.id_listview)).setAdapter((ListAdapter) new CopyAdapter(context, onCopyClickListener));
        ((TextView) this.mDialog.findViewById(R.id.id_cancel)).setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Util.EditDialogUtil.AnonymousClass129 */

            public void onClick(View view) {
                EditDialogUtil.this.mDialog.dismiss();
            }
        });
    }

    public class CopyAdapter extends BaseAdapter {
        Context mContext;
        OnCopyClickListener mOnCopyClickListener;

        public Object getItem(int i) {
            return null;
        }

        public long getItemId(int i) {
            return 0;
        }

        public CopyAdapter(Context context, OnCopyClickListener onCopyClickListener) {
            this.mContext = context;
            this.mOnCopyClickListener = onCopyClickListener;
        }

        public int getCount() {
            return DataUtil.mCopyActionJsonList.size();
        }

        public View getView(final int i, View view, ViewGroup viewGroup) {
            View inflate = View.inflate(this.mContext, R.layout.item_copy, null);
            TextView textView = (TextView) inflate.findViewById(R.id.id_detail);
            ImageView imageView = (ImageView) inflate.findViewById(R.id.id_img);
            ImageView imageView2 = (ImageView) inflate.findViewById(R.id.id_img_short);
            ImageView imageView3 = (ImageView) inflate.findViewById(R.id.id_del);
            ImageView imageView4 = (ImageView) inflate.findViewById(R.id.id_copy);
            final ActionBean actionBean = (ActionBean) new Gson().fromJson(DataUtil.mCopyActionJsonList.get(i), ActionBean.class);
            textView.setText(actionBean.getActionName());
            ((TextView) inflate.findViewById(R.id.id_name)).setText(actionBean.getActionName());
            String mark = actionBean.getMark();
            if (TextUtils.isEmpty(mark)) {
                textView.setText(AutoUtils.getMarkString(actionBean));
            } else {
                textView.setText(mark);
            }
            String actionType = actionBean.getActionType();
            DetailBean detailBean = (DetailBean) new ArrayGson().fromJson(actionBean.getDetail(), DetailBean.class);
            Constants.ActionEnum findEnum = EditDialogUtil.this.findEnum(actionType);
            if (findEnum != null) {
                actionType.hashCode();
                char c = 65535;
                switch (actionType.hashCode()) {
                    case -1131150297:
                        if (actionType.equals(Constants.ACTION_TYPE_RES_IMG_DELAY)) {
                            c = 0;
                            break;
                        }
                        break;
                    case -833024575:
                        if (actionType.equals(Constants.ACTION_TYPE_RES_DRAP_CLICK_IMG)) {
                            c = 1;
                            break;
                        }
                        break;
                    case -815136703:
                        if (actionType.equals(Constants.ACTION_TYPE_OPEN_APP_NEW)) {
                            c = 2;
                            break;
                        }
                        break;
                    case 4088742:
                        if (actionType.equals(Constants.ACTION_TYPE_CLICK_IMG_OFFSET)) {
                            c = 3;
                            break;
                        }
                        break;
                    case 466857327:
                        if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_IMG_TIMES_RECT)) {
                            c = 4;
                            break;
                        }
                        break;
                    case 484400777:
                        if (actionType.equals(Constants.ACTION_TYPE_RES_LONG_CLICK_IMG)) {
                            c = 5;
                            break;
                        }
                        break;
                    case 500571023:
                        if (actionType.equals(Constants.ACTION_TYPE_DO_INSIGN_AUTO)) {
                            c = 6;
                            break;
                        }
                        break;
                    case 961237000:
                        if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_IMG_ALL)) {
                            c = 7;
                            break;
                        }
                        break;
                    case 1210798333:
                        if (actionType.equals(Constants.ACTION_TYPE_RES_IMG_PICK)) {
                            c = '\b';
                            break;
                        }
                        break;
                    case 1563175462:
                        if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_IMG)) {
                            c = '\t';
                            break;
                        }
                        break;
                    case 2144954836:
                        if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_IMG_TIMES)) {
                            c = '\n';
                            break;
                        }
                        break;
                }
                switch (c) {
                    case 0:
                    case 1:
                    case 3:
                    case 4:
                    case 5:
                    case 7:
                    case '\b':
                    case '\t':
                    case '\n':
                        imageView.setVisibility(View.GONE);
                        imageView2.setVisibility(View.VISIBLE);
                        Glide.with(MyApp.getContext()).load(detailBean.getImgPath()).apply(new RequestOptions().skipMemoryCache(true).diskCacheStrategy(DiskCacheStrategy.NONE).fitCenter()).into(imageView2);
                        break;
                    case 2:
                        imageView.setVisibility(View.GONE);
                        imageView2.setVisibility(View.VISIBLE);
                        try {
                            imageView2.setImageDrawable(MyApp.getContext().getPackageManager().getApplicationIcon(detailBean.getPackName()));
                            break;
                        } catch (Exception e) {
                            e.printStackTrace();
                            break;
                        }
                    case 6:
                        imageView.setVisibility(View.VISIBLE);
                        imageView2.setVisibility(View.GONE);
                        Glide.with(MyApp.getContext()).load(Integer.valueOf((int) R.drawable.play_auto)).into(imageView);
                        break;
                    default:
                        imageView.setVisibility(View.VISIBLE);
                        imageView2.setVisibility(View.GONE);
                        Glide.with(MyApp.getContext()).load(Integer.valueOf(findEnum.getImg())).into(imageView);
                        break;
                }
            } else {
                imageView.setVisibility(View.VISIBLE);
                imageView2.setVisibility(View.GONE);
            }
            imageView3.setOnClickListener(new View.OnClickListener() {
                /* class com.lmiot.xyclick.Util.EditDialogUtil.CopyAdapter.AnonymousClass1 */

                public void onClick(View view) {
                    EditDialogUtil.this.mDialog.dismiss();
                    DataUtil.mCopyActionJsonList.remove(i);
                    CopyAdapter.this.notifyDataSetChanged();
                    if (DataUtil.mCopyActionJsonList.size() == 0 && CopyAdapter.this.mOnCopyClickListener != null) {
                        CopyAdapter.this.mOnCopyClickListener.click(actionBean);
                    }
                }
            });
            imageView4.setOnClickListener(new View.OnClickListener() {
                /* class com.lmiot.xyclick.Util.EditDialogUtil.CopyAdapter.AnonymousClass2 */

                public void onClick(View view) {
                    EditDialogUtil.this.mDialog.dismiss();
                    if (CopyAdapter.this.mOnCopyClickListener != null) {
                        CopyAdapter.this.mOnCopyClickListener.click(actionBean);
                    }
                }
            });
            return inflate;
        }
    }
}
